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++/51414] New: Broken diagnostic with invalid use of __underlying_type


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

             Bug #: 51414
           Summary: Broken diagnostic with invalid use of
                    __underlying_type
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: reichelt@gcc.gnu.org


A broken diagnostic is generated on trunk for the following invalid code
snippet:

==============================
__underlying_type(int[1]) i;
==============================

bug.cc:1:25: error: '#'array_type' not supported by dump_expr#<expression
error>' is not an enumeration type
bug.cc:1:28: error: invalid type in declaration before ';' token


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