public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37647]  New: [4.3/4.4 regression] ICE with invalid use of constructor
@ 2008-09-25  7:06 reichelt at gcc dot gnu dot org
  2008-09-25  7:07 ` [Bug c++/37647] " reichelt at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-09-25  7:06 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since GCC 4.3.0:

==========================
struct A
{
  A() { void A(); }
};
==========================

bug.cc: In constructor 'A::A()':
bug.cc:3: error: return type specification for constructor invalid
bug.cc:3: internal compiler error: in copy_fn_p, at cp/decl.c:9677
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3/4.4 regression] ICE with invalid use of constructor
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/37647] [4.3/4.4 regression] ICE with invalid use of constructor
  2008-09-25  7:06 [Bug c++/37647] New: [4.3/4.4 regression] ICE with invalid use of constructor reichelt at gcc dot gnu dot org
@ 2008-09-25  7:07 ` reichelt at gcc dot gnu dot org
  2008-09-28 19:55 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-09-25  7:07 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.3


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


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

* [Bug c++/37647] [4.3/4.4 regression] ICE with invalid use of constructor
  2008-09-25  7:06 [Bug c++/37647] New: [4.3/4.4 regression] ICE with invalid use of constructor reichelt at gcc dot gnu dot org
  2008-09-25  7:07 ` [Bug c++/37647] " reichelt at gcc dot gnu dot org
@ 2008-09-28 19:55 ` pinskia at gcc dot gnu dot org
  2008-10-02 19:44 ` simartin at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-28 19:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-09-28 19:54 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-09-28 19:54:19
               date|                            |


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


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

* [Bug c++/37647] [4.3/4.4 regression] ICE with invalid use of constructor
  2008-09-25  7:06 [Bug c++/37647] New: [4.3/4.4 regression] ICE with invalid use of constructor reichelt at gcc dot gnu dot org
  2008-09-25  7:07 ` [Bug c++/37647] " reichelt at gcc dot gnu dot org
  2008-09-28 19:55 ` pinskia at gcc dot gnu dot org
@ 2008-10-02 19:44 ` simartin at gcc dot gnu dot org
  2008-10-03  3:39 ` simartin at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: simartin at gcc dot gnu dot org @ 2008-10-02 19:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from simartin at gcc dot gnu dot org  2008-10-02 19:42 -------
Introduced by my fix for PR29077


-- 

simartin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simartin at gcc dot gnu dot
                   |                            |org
         AssignedTo|unassigned at gcc dot gnu   |simartin at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-09-28 19:54:19         |2008-10-02 19:42:54
               date|                            |


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


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

* [Bug c++/37647] [4.3/4.4 regression] ICE with invalid use of constructor
  2008-09-25  7:06 [Bug c++/37647] New: [4.3/4.4 regression] ICE with invalid use of constructor reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-10-02 19:44 ` simartin at gcc dot gnu dot org
@ 2008-10-03  3:39 ` simartin at gcc dot gnu dot org
  2008-10-10  9:15 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: simartin at gcc dot gnu dot org @ 2008-10-03  3:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from simartin at gcc dot gnu dot org  2008-10-03 03:38 -------
Patch submitted here
  http://gcc.gnu.org/ml/gcc-patches/2008-10/msg00079.html


-- 


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


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

* [Bug c++/37647] [4.3/4.4 regression] ICE with invalid use of constructor
  2008-09-25  7:06 [Bug c++/37647] New: [4.3/4.4 regression] ICE with invalid use of constructor reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-10-03  3:39 ` simartin at gcc dot gnu dot org
@ 2008-10-10  9:15 ` rguenth at gcc dot gnu dot org
  2009-01-24 10:26 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-10-10  9:15 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.3.0
      Known to work|                            |4.2.4
           Priority|P3                          |P4


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


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

* [Bug c++/37647] [4.3/4.4 regression] ICE with invalid use of constructor
  2008-09-25  7:06 [Bug c++/37647] New: [4.3/4.4 regression] ICE with invalid use of constructor reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-10-10  9:15 ` rguenth at gcc dot gnu dot org
@ 2009-01-24 10:26 ` rguenth at gcc dot gnu dot org
  2009-03-27  7:18 ` andreasmeier80 at gmx dot de
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-24 10:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-01-24 10:20 -------
GCC 4.3.3 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.3                       |4.3.4


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


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

* [Bug c++/37647] [4.3/4.4 regression] ICE with invalid use of constructor
  2008-09-25  7:06 [Bug c++/37647] New: [4.3/4.4 regression] ICE with invalid use of constructor reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-01-24 10:26 ` rguenth at gcc dot gnu dot org
@ 2009-03-27  7:18 ` andreasmeier80 at gmx dot de
  2009-03-27 13:18 ` hjl at gcc dot gnu dot org
  2009-04-22 15:29 ` [Bug c++/37647] [4.3 " rguenth at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: andreasmeier80 at gmx dot de @ 2009-03-27  7:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from andreasmeier80 at gmx dot de  2009-03-27 07:17 -------
Approved patch: http://gcc.gnu.org/ml/gcc-patches/2009-03/msg01080.html


-- 


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


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

* [Bug c++/37647] [4.3/4.4 regression] ICE with invalid use of constructor
  2008-09-25  7:06 [Bug c++/37647] New: [4.3/4.4 regression] ICE with invalid use of constructor reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2009-03-27  7:18 ` andreasmeier80 at gmx dot de
@ 2009-03-27 13:18 ` hjl at gcc dot gnu dot org
  2009-04-22 15:29 ` [Bug c++/37647] [4.3 " rguenth at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-03-27 13:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from hjl at gcc dot gnu dot org  2009-03-27 13:17 -------
Subject: Bug 37647

Author: hjl
Date: Fri Mar 27 13:17:37 2009
New Revision: 145105

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145105
Log:
gcc/cp/

2009-03-27  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/37647
        * decl.c (grokdeclarator): Reject [con|de]stuctors in a non-class
        scope.

gcc/testsuite/

2009-03-27  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/37647
        * g++.dg/parse/ctor9.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/parse/ctor9.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/37647] [4.3 regression] ICE with invalid use of constructor
  2008-09-25  7:06 [Bug c++/37647] New: [4.3/4.4 regression] ICE with invalid use of constructor reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2009-03-27 13:18 ` hjl at gcc dot gnu dot org
@ 2009-04-22 15:29 ` rguenth at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-22 15:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rguenth at gcc dot gnu dot org  2009-04-22 15:28 -------
WONTFIX for 4.3.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|4.3.0                       |4.3.0 4.3.3
         Resolution|                            |FIXED
   Target Milestone|4.3.4                       |4.4.0


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


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

end of thread, other threads:[~2009-04-22 15:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-25  7:06 [Bug c++/37647] New: [4.3/4.4 regression] ICE with invalid use of constructor reichelt at gcc dot gnu dot org
2008-09-25  7:07 ` [Bug c++/37647] " reichelt at gcc dot gnu dot org
2008-09-28 19:55 ` pinskia at gcc dot gnu dot org
2008-10-02 19:44 ` simartin at gcc dot gnu dot org
2008-10-03  3:39 ` simartin at gcc dot gnu dot org
2008-10-10  9:15 ` rguenth at gcc dot gnu dot org
2009-01-24 10:26 ` rguenth at gcc dot gnu dot org
2009-03-27  7:18 ` andreasmeier80 at gmx dot de
2009-03-27 13:18 ` hjl at gcc dot gnu dot org
2009-04-22 15:29 ` [Bug c++/37647] [4.3 " 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).