https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69865

            Bug ID: 69865
           Summary: -trigraphs option broken
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bernd.edlinger at hotmail dot de
  Target Milestone: ---

Hi,

I know, nobody likes them, but...

cat test.cc
int
main ()
??<
  return 0;
??>

gcc -trigraphs test.cc
test.cc:3:1: warning: trigraph ??< ignored, use -trigraphs to enable
[-Wtrigraphs]
 ??<
 ^
test.cc:5:1: warning: trigraph ??> ignored, use -trigraphs to enable
[-Wtrigraphs]
 ??>
 ^
test.cc:3:1: error: expected initializer before '?' token
 ??<
 ^
test.cc:5:1: error: expected unqualified-id before '?' token
 ??>
 ^

Reply via email to