Take the following preprocessed souece:
# 1 "t.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "t.c"
# 1 "t.h" 1
1
# 2 "t.c" 2

-------- cut ----------
with this in 3.3.3, we got:
In file included from t.c:1:
t.h:1: error: parse error before numeric constant

But in 3.4.0 and above:
t.h:1: error: expected unqualified-id before numeric constant
Which does not help at all.

-- 
           Summary: [3.4/4.0/4.1 regression] C++ front-end does not print
                    #include stack for parsering errors
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24037

Reply via email to