public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31338]  New: [4.1/4.2/4.3 regression] Cannot apply "!" to complex constants
@ 2007-03-24 23:17 reichelt at gcc dot gnu dot org
  2007-03-24 23:18 ` [Bug c++/31338] " reichelt at gcc dot gnu dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-03-24 23:17 UTC (permalink / raw)
  To: gcc-bugs

The following IMHO valid code snippet is rejected since GCC 3.4.0:

===========================
bool b = !0i;
===========================

bug.cc:1: error: could not convert '#'complex_cst' not supported by
dump_expr#<expression error>' to 'bool'
bug.cc:1: error: in argument to unary !

The C front-end accepts complex constants as argument to "!".
This is related to PR30209.

Btw, the fact that dump_expr cannot handle complex_cst is already
tracked in PR 30896.


-- 
           Summary: [4.1/4.2/4.3 regression] Cannot apply "!" to complex
                    constants
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: rejects-valid, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
 BugsThisDependsOn: 30209


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


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

end of thread, other threads:[~2008-07-04 16:05 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-24 23:17 [Bug c++/31338] New: [4.1/4.2/4.3 regression] Cannot apply "!" to complex constants reichelt at gcc dot gnu dot org
2007-03-24 23:18 ` [Bug c++/31338] " reichelt at gcc dot gnu dot org
2007-03-29 10:01 ` rsandifo at gcc dot gnu dot org
2007-03-29 10:03 ` rsandifo at gcc dot gnu dot org
2007-03-29 10:03 ` rsandifo at gcc dot gnu dot org
2007-04-15 22:07 ` mmitchel at gcc dot gnu dot org
2007-04-23 16:07 ` janis at gcc dot gnu dot org
2007-04-23 21:44 ` mmitchel at gcc dot gnu dot org
2007-04-26  2:37 ` [Bug c++/31338] [4.1/4.2 " mmitchel at gcc dot gnu dot org
2007-04-26  2:37 ` [Bug c++/31338] [4.1/4.2/4.3 " mmitchel at gcc dot gnu dot org
2007-04-28  2:50 ` [Bug c++/31338] [4.1/4.2 " howarth at nitro dot med dot uc dot edu
2007-04-29  6:55 ` pinskia at gcc dot gnu dot org
2007-07-04 17:18 ` mmitchel at gcc dot gnu dot org
2007-07-04 17:27 ` [Bug c++/31338] [4.1 " mmitchel at gcc dot gnu dot org
2007-07-07 10:43 ` reichelt at gcc dot gnu dot org
2008-07-04 16:05 ` jsm28 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).