public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20148] New: [4.0 regression] Hosed error message with statement expression
@ 2005-02-22 22:06 reichelt at gcc dot gnu dot org
  2005-02-22 22:23 ` [Bug c++/20148] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-02-22 22:06 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-02-23  5:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-22 22:06 [Bug c++/20148] New: [4.0 regression] Hosed error message with statement expression reichelt at gcc dot gnu dot org
2005-02-22 22:23 ` [Bug c++/20148] " pinskia at gcc dot gnu dot org
2005-02-22 23:17 ` reichelt at gcc dot gnu dot org
2005-02-23  7:01 ` mmitchel at gcc dot gnu dot org
2005-02-23 13:36 ` cvs-commit at gcc dot gnu dot org
2005-02-23 13:56 ` mmitchel at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).