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++/26571] New: [4.0/4.1/4.2 regression] Bad diagnostic using type modifier with struct


The invalid testcase

===============================
struct A {};
unsigned A a;
===============================

triggers the following bogus error message since GCC 3.4.0:

  bug.cc:2: error: 'A' does not name a type

The error message before wasn't very helpful

  bug.cc:2: error: syntax error before `;' token

but at least it wasn't plain wrong.
So I rate this as a regression.


-- 
           Summary: [4.0/4.1/4.2 regression] Bad diagnostic using type
                    modifier with struct
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: diagnostic, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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