Issue Details (XML | Word | Printable)

Key: PCC-350
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Nicolas Joly
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

trigraphs not working as expected

Created: 15/May/11 10:31 PM   Updated: 18/May/11 12:03 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

NetBSD petaure.lan 5.99.51 NetBSD 5.99.51 (PETAURE) #20: Sat May 14 23:11:43 CEST 2011 njoly@petaure.lan:/local/src/NetBSD/obj.amd64/sys/arch/amd64/compile/PETAURE amd64
pcc 1.1.0.DEVEL 20110513 for x86_64-unknown-netbsd5.99.51, njoly@petaure.lan

 Description  « Hide
Looks like trigraphs are not handles correctly anymore ...

njoly@petaure [~]> cat trigraph.c
??=error "This should fail"
int main() { return 0; }
njoly@petaure [~]> pcc -o /dev/null trigraph.c; echo $?
trigraph.c, line 1: warning: #error "This should fail": illegal control
njoly@petaure [~]> gcc -trigraphs -o /dev/null trigraph.c; echo $?
trigraph.c:1:2: error: #error "This should fail"

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson made changes - 18/May/11 12:02 PM
Field Original Value New Value
Assignee Anders Magnusson [ ragge ]
Anders Magnusson added a comment - 18/May/11 12:03 PM
Trigraphs weren't searched for after newlines, but now they are.

Anders Magnusson made changes - 18/May/11 12:03 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]