public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27279]  New: [4.0/4.1/4.2 regression] ICE with invalid constructor declaration
@ 2006-04-24 11:38 reichelt at gcc dot gnu dot org
  2006-04-24 18:55 ` [Bug c++/27279] " patchapp at dberlin dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-24 11:38 UTC (permalink / raw)
  To: gcc-bugs

The following invalid testcase causes an ICE since GCC 3.0:

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

bug.cc:3: error: '<anonymous>' has incomplete type
bug.cc:3: error: invalid use of 'void'
bug.cc:3: error: '<anonymous>' has incomplete type
bug.cc:3: error: invalid use of 'void'
bug.cc:3: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in copy_fn_p, at cp/decl.c:8821
Please submit a full bug report, [etc.]

Similar to PR 27278, but ICEs in a different position.

Testing a patch.


-- 
           Summary: [4.0/4.1/4.2 regression] ICE with invalid constructor
                    declaration
           Product: gcc
           Version: 4.2.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=27279


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

* [Bug c++/27279] [4.0/4.1/4.2 regression] ICE with invalid constructor declaration
  2006-04-24 11:38 [Bug c++/27279] New: [4.0/4.1/4.2 regression] ICE with invalid constructor declaration reichelt at gcc dot gnu dot org
@ 2006-04-24 18:55 ` patchapp at dberlin dot org
  2006-04-24 23:40 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: patchapp at dberlin dot org @ 2006-04-24 18:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from patchapp at dberlin dot org  2006-04-24 18:55 -------
Subject: Bug number PR c++/27279

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-04/msg00930.html


-- 


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


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

* [Bug c++/27279] [4.0/4.1/4.2 regression] ICE with invalid constructor declaration
  2006-04-24 11:38 [Bug c++/27279] New: [4.0/4.1/4.2 regression] ICE with invalid constructor declaration reichelt at gcc dot gnu dot org
  2006-04-24 18:55 ` [Bug c++/27279] " patchapp at dberlin dot org
@ 2006-04-24 23:40 ` pinskia at gcc dot gnu dot org
  2006-04-25 21:35 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-24 23:40 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.1


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


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

* [Bug c++/27279] [4.0/4.1/4.2 regression] ICE with invalid constructor declaration
  2006-04-24 11:38 [Bug c++/27279] New: [4.0/4.1/4.2 regression] ICE with invalid constructor declaration reichelt at gcc dot gnu dot org
  2006-04-24 18:55 ` [Bug c++/27279] " patchapp at dberlin dot org
  2006-04-24 23:40 ` pinskia at gcc dot gnu dot org
@ 2006-04-25 21:35 ` pinskia at gcc dot gnu dot org
  2006-04-29 20:48 ` reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-25 21:35 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2006-
                   |                            |04/msg00930.html
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-04-25 21:35:24
               date|                            |


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


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

* [Bug c++/27279] [4.0/4.1/4.2 regression] ICE with invalid constructor declaration
  2006-04-24 11:38 [Bug c++/27279] New: [4.0/4.1/4.2 regression] ICE with invalid constructor declaration reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-04-25 21:35 ` pinskia at gcc dot gnu dot org
@ 2006-04-29 20:48 ` reichelt at gcc dot gnu dot org
  2006-04-29 20:52 ` reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-29 20:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from reichelt at gcc dot gnu dot org  2006-04-29 20:48 -------
Subject: Bug 27279

Author: reichelt
Date: Sat Apr 29 20:48:45 2006
New Revision: 113378

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113378
Log:
        PR c++/27279
        * decl.c (copy_fn_p): Skip functions with invalid first arg.

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

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


-- 


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


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

* [Bug c++/27279] [4.0/4.1/4.2 regression] ICE with invalid constructor declaration
  2006-04-24 11:38 [Bug c++/27279] New: [4.0/4.1/4.2 regression] ICE with invalid constructor declaration reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-04-29 20:48 ` reichelt at gcc dot gnu dot org
@ 2006-04-29 20:52 ` reichelt at gcc dot gnu dot org
  2006-04-29 20:55 ` reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-29 20:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from reichelt at gcc dot gnu dot org  2006-04-29 20:52 -------
Subject: Bug 27279

Author: reichelt
Date: Sat Apr 29 20:52:24 2006
New Revision: 113379

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113379
Log:
        PR c++/27279
        * decl.c (copy_fn_p): Skip functions with invalid first arg.

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

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/ctor4.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/decl.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/27279] [4.0/4.1/4.2 regression] ICE with invalid constructor declaration
  2006-04-24 11:38 [Bug c++/27279] New: [4.0/4.1/4.2 regression] ICE with invalid constructor declaration reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-04-29 20:52 ` reichelt at gcc dot gnu dot org
@ 2006-04-29 20:55 ` reichelt at gcc dot gnu dot org
  2006-04-29 20:57 ` reichelt at gcc dot gnu dot org
  2006-04-29 20:57 ` reichelt at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-29 20:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from reichelt at gcc dot gnu dot org  2006-04-29 20:55 -------
Subject: Bug 27279

Author: reichelt
Date: Sat Apr 29 20:55:44 2006
New Revision: 113380

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113380
Log:
        PR c++/27279
        * decl.c (copy_fn_p): Skip functions with invalid first arg.

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

Added:
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/ctor4.C
Modified:
    branches/gcc-4_0-branch/gcc/cp/ChangeLog
    branches/gcc-4_0-branch/gcc/cp/decl.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/27279] [4.0/4.1/4.2 regression] ICE with invalid constructor declaration
  2006-04-24 11:38 [Bug c++/27279] New: [4.0/4.1/4.2 regression] ICE with invalid constructor declaration reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-04-29 20:57 ` reichelt at gcc dot gnu dot org
@ 2006-04-29 20:57 ` reichelt at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-29 20:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from reichelt at gcc dot gnu dot org  2006-04-29 20:57 -------
Fixed on mainline, 4.1 branch, and 4.0 branch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.1                       |4.0.4


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


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

* [Bug c++/27279] [4.0/4.1/4.2 regression] ICE with invalid constructor declaration
  2006-04-24 11:38 [Bug c++/27279] New: [4.0/4.1/4.2 regression] ICE with invalid constructor declaration reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-04-29 20:55 ` reichelt at gcc dot gnu dot org
@ 2006-04-29 20:57 ` reichelt at gcc dot gnu dot org
  2006-04-29 20:57 ` reichelt at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-29 20:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from reichelt at gcc dot gnu dot org  2006-04-29 20:57 -------
Really fixed.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2006-04-29 20:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-24 11:38 [Bug c++/27279] New: [4.0/4.1/4.2 regression] ICE with invalid constructor declaration reichelt at gcc dot gnu dot org
2006-04-24 18:55 ` [Bug c++/27279] " patchapp at dberlin dot org
2006-04-24 23:40 ` pinskia at gcc dot gnu dot org
2006-04-25 21:35 ` pinskia at gcc dot gnu dot org
2006-04-29 20:48 ` reichelt at gcc dot gnu dot org
2006-04-29 20:52 ` reichelt at gcc dot gnu dot org
2006-04-29 20:55 ` reichelt at gcc dot gnu dot org
2006-04-29 20:57 ` reichelt at gcc dot gnu dot org
2006-04-29 20:57 ` reichelt 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).