This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20148] New: [4.0 regression] Hosed error message with statement expression
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Feb 2005 17:04:34 -0000
- Subject: [Bug c++/20148] New: [4.0 regression] Hosed error message with statement expression
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The diagnostic for the following invalid code snippet is hosed on mainline
(this only affects the C++ frontend):
==========================
void foo()
{
if (({int c[2];})) ;
}
==========================
bug.cc: In function 'void foo()':
bug.cc:3: error: could not convert '{#'decl_expr' not supported by
dump_expr#<expression error>}' to 'bool'
Older versions handle this correctly:
bug.cc: In function `void foo()':
bug.cc:3: error: could not convert `({...})' to `bool'
--
Summary: [4.0 regression] Hosed error message with statement
expression
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: diagnostic, monitored
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20148