public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40566]  New: rejects promoted throw
@ 2009-06-27 13:04 rguenth at gcc dot gnu dot org
  2009-06-27 13:05 ` [Bug c++/40566] [4.3/4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-06-27 13:04 UTC (permalink / raw)
  To: gcc-bugs

void f(int x) { char c = x ? 23 : throw "bla"; }

error: aggregate value used where an integer was expected


because we call convert_to_integer on the throw_expression.


-- 
           Summary: rejects promoted throw
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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


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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-27 13:04 [Bug c++/40566] New: rejects promoted throw rguenth at gcc dot gnu dot org
2009-06-27 13:05 ` [Bug c++/40566] [4.3/4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
2009-06-30 18:06 ` jakub at gcc dot gnu dot org
2009-06-30 22:05 ` jakub at gcc dot gnu dot org
2009-06-30 22:38 ` jakub at gcc dot gnu dot org
2009-06-30 22:40 ` [Bug c++/40566] [4.3 " jakub at gcc dot gnu dot org
2009-07-10 16:03 ` rguenth at gcc dot gnu dot org
2009-07-10 16:05 ` rguenth 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).