This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51414] New: Broken diagnostic with invalid use of __underlying_type
- From: "reichelt at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 04 Dec 2011 22:11:41 +0000
- Subject: [Bug c++/51414] New: Broken diagnostic with invalid use of __underlying_type
- Auto-submitted: auto-generated
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