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/53924] New: unhelpful diagnostic in invalid declaration list


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

             Bug #: 53924
           Summary: unhelpful diagnostic in invalid declaration list
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: steven@gcc.gnu.org


The C front end gives a really unhelpful error message for the most trivial
mistakes. This is one example:

$ cat t.c
typedef void *tree;
tree klass, tree cdecl, class_array_type;
$ ./cc1 -quiet t.c
t.c:2:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'cdecl'
 tree klass, tree cdecl, class_array_type;
                  ^
$

The parser should be able to recover from this error more gracefully.


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