<< Back to previous view

[PCC-350] trigraphs not working as expected Created: 15/May/11  Updated: 18/May/11

Status: Resolved
Project: pcc
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Nicolas Joly Assignee: Anders Magnusson
Resolution: Fixed Votes: 0
Environment: 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   
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
0
njoly@petaure [~]> gcc -trigraphs -o /dev/null trigraph.c; echo $?
trigraph.c:1:2: error: #error "This should fail"
1


 Comments   
Comment by Anders Magnusson [ 18/May/11 12:03 PM ]
Trigraphs weren't searched for after newlines, but now they are.
Generated at Tue Nov 25 21:50:19 CET 2014 using JIRA Enterprise Edition, Version: 3.13.1-#333.