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

* [Bug c++/40566] [4.3/4.4/4.5 Regression] rejects promoted throw
  2009-06-27 13:04 [Bug c++/40566] New: rejects promoted throw rguenth at gcc dot gnu dot org
@ 2009-06-27 13:05 ` rguenth at gcc dot gnu dot org
  2009-06-30 18:06 ` jakub at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-06-27 13:05 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |3.3.6 4.0.0 4.4.1 4.5.0
      Known to work|                            |2.95.3
            Summary|rejects promoted throw      |[4.3/4.4/4.5 Regression]
                   |                            |rejects promoted throw
   Target Milestone|---                         |4.3.4


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


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

* [Bug c++/40566] [4.3/4.4/4.5 Regression] rejects promoted throw
  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
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-06-30 18:06 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-06-30 18:06:12
               date|                            |


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


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

* [Bug c++/40566] [4.3/4.4/4.5 Regression] rejects promoted throw
  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
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-06-30 22:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2009-06-30 22:04 -------
Subject: Bug 40566

Author: jakub
Date: Tue Jun 30 22:04:36 2009
New Revision: 149121

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149121
Log:
        PR c++/40566
        * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
        to type arguments that have void type.

        * g++.dg/parse/cond5.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/parse/cond5.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/convert.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/40566] [4.3/4.4/4.5 Regression] rejects promoted throw
  2009-06-27 13:04 [Bug c++/40566] New: rejects promoted throw rguenth at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-06-30 22:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2009-06-30 22:38 -------
Subject: Bug 40566

Author: jakub
Date: Tue Jun 30 22:38:04 2009
New Revision: 149123

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149123
Log:
        PR c++/40566
        * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
        to type arguments that have void type.

        * g++.dg/parse/cond5.C: New test.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/parse/cond5.C
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/convert.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/40566] [4.3 Regression] rejects promoted throw
  2009-06-27 13:04 [Bug c++/40566] New: rejects promoted throw rguenth at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-06-30 22:38 ` jakub at gcc dot gnu dot org
@ 2009-06-30 22:40 ` 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
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-06-30 22:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2009-06-30 22:40 -------
Fixed for 4.4/4.5 so far.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|3.3.6 4.0.0 4.4.1 4.5.0     |3.3.6 4.0.0 4.4.0
      Known to work|2.95.3                      |2.95.3 4.4.1 4.5.0
            Summary|[4.3/4.4/4.5 Regression]    |[4.3 Regression] rejects
                   |rejects promoted throw      |promoted throw


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


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

* [Bug c++/40566] [4.3 Regression] rejects promoted throw
  2009-06-27 13:04 [Bug c++/40566] New: rejects promoted throw rguenth at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-10 16:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-07-10 16:03 -------
Subject: Bug 40566

Author: rguenth
Date: Fri Jul 10 16:02:59 2009
New Revision: 149488

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149488
Log:
2009-07-10  Richard Guenther  <rguenther@suse.de>

        Backport from mainline
        2009-06-30  Jakub Jelinek  <jakub@redhat.com>

        PR c++/40566
        * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
        to type arguments that have void type.

        * g++.dg/parse/cond5.C: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/parse/cond5.C
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/convert.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/40566] [4.3 Regression] rejects promoted throw
  2009-06-27 13:04 [Bug c++/40566] New: rejects promoted throw rguenth at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-07-10 16:03 ` rguenth at gcc dot gnu dot org
@ 2009-07-10 16:05 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-10 16:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-07-10 16:05 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|3.3.6 4.0.0 4.4.0           |3.3.6 4.0.0 4.3.3 4.4.0
      Known to work|2.95.3 4.4.1 4.5.0          |2.95.3 4.3.4 4.4.1 4.5.0
         Resolution|                            |FIXED


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).