This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16988] [3.4/3.5 regression] confusing diagnostic for ill-formed object definition


------- Additional Comments From bangerth at dealii dot org  2004-08-11 21:46 -------
Confirmed, a regression with the new parser: 
 
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/c++ -c x.cc 
x.cc: In function `int main()': 
x.cc:3: error: parse error before `bar' 
 
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc 
x.cc: In function `int main()': 
x.cc:3: error: expected primary-expression before "const" 
x.cc:3: error: expected `;' before "const" 
 
We shouldn't backtrack so far if we can't parse something. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2004-08-11 21:46:48
               date|                            |
            Summary|confusing diagnostic for    |[3.4/3.5 regression]
                   |ill-formed object definition|confusing diagnostic for
                   |                            |ill-formed object definition
   Target Milestone|---                         |3.5.0


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]