public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27309]  New: [4.0/4.1/4.2 regression] ICE on invalid constructor definition
@ 2006-04-25 13:18 reichelt at gcc dot gnu dot org
  2006-04-25 18:32 ` [Bug c++/27309] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-25 13:18 UTC (permalink / raw)
  To: gcc-bugs

The following invalid testcase causes an ICE since GCC 4.0.0:

=================================
struct A
{
    int i;
    A() i() {}  // missing colon
};

struct B
{
    A a;
};

B b;
=================================

bug.cc:4: error: expected ';' before 'i'
bug.cc:5: error: expected `;' before '}' token
bug.cc:12: internal compiler error: vector VEC(tree,base) index domain error,
in locate_ctor at cp/method.c:885
Please submit a full bug report, [etc.]

Btw, the code also caused GCC 2.95.x and 3.0.x to crash.


-- 
           Summary: [4.0/4.1/4.2 regression] ICE on invalid constructor
                    definition
           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=27309


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

* [Bug c++/27309] [4.0/4.1/4.2 regression] ICE on invalid constructor definition
  2006-04-25 13:18 [Bug c++/27309] New: [4.0/4.1/4.2 regression] ICE on invalid constructor definition reichelt at gcc dot gnu dot org
@ 2006-04-25 18:32 ` pinskia at gcc dot gnu dot org
  2006-04-25 21:33 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-25 18:32 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
   Target Milestone|---                         |4.1.1


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


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

* [Bug c++/27309] [4.0/4.1/4.2 regression] ICE on invalid constructor definition
  2006-04-25 13:18 [Bug c++/27309] New: [4.0/4.1/4.2 regression] ICE on invalid constructor definition reichelt at gcc dot gnu dot org
  2006-04-25 18:32 ` [Bug c++/27309] " pinskia at gcc dot gnu dot org
@ 2006-04-25 21:33 ` pinskia at gcc dot gnu dot org
  2006-05-02 15:59 ` mmitchel at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-25 21:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-04-25 21:32 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-04-25 21:32:58
               date|                            |


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


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

* [Bug c++/27309] [4.0/4.1/4.2 regression] ICE on invalid constructor definition
  2006-04-25 13:18 [Bug c++/27309] New: [4.0/4.1/4.2 regression] ICE on invalid constructor definition reichelt at gcc dot gnu dot org
  2006-04-25 18:32 ` [Bug c++/27309] " pinskia at gcc dot gnu dot org
  2006-04-25 21:33 ` pinskia at gcc dot gnu dot org
@ 2006-05-02 15:59 ` mmitchel at gcc dot gnu dot org
  2006-05-02 16:23 ` [Bug c++/27309] [4.0/4.1 " mmitchel at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-02 15:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from mmitchel at gcc dot gnu dot org  2006-05-02 15:59 -------
Subject: Bug 27309

Author: mmitchel
Date: Tue May  2 15:59:50 2006
New Revision: 113473

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113473
Log:
        PR c++/27309
        * class.c (add_method): Call grok_special_member_properties.
        * decl.c (grokdeclarator): Don't call it here.
        (copy_fn_p): A TEMPLATE_DECL is never a copy constructor or
        assignment operator.  Set TYPE_HAS_CONSTURCTOR if DECL is a
        constructor.
        (start_method): Don't call grok_special_member_properties.
        * method.c (implicitly_declare_fn): Likewise.
        * pt.c (instantiate_class_template): Likewise.
        * decl2.c (grokfield): Likewise.
        PR c++/27309
        * g++.dg/parser/ctor5.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/parse/ctor5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/class.c
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/decl2.c
    trunk/gcc/cp/method.c
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/27309] [4.0/4.1 regression] ICE on invalid constructor definition
  2006-04-25 13:18 [Bug c++/27309] New: [4.0/4.1/4.2 regression] ICE on invalid constructor definition reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-05-02 15:59 ` mmitchel at gcc dot gnu dot org
@ 2006-05-02 16:23 ` mmitchel at gcc dot gnu dot org
  2006-05-03 10:34 ` reichelt at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-02 16:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from mmitchel at gcc dot gnu dot org  2006-05-02 16:23 -------
Fixed in 4.2.0.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED
            Summary|[4.0/4.1/4.2 regression] ICE|[4.0/4.1 regression] ICE on
                   |on invalid constructor      |invalid constructor
                   |definition                  |definition


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


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

* [Bug c++/27309] [4.0/4.1 regression] ICE on invalid constructor definition
  2006-04-25 13:18 [Bug c++/27309] New: [4.0/4.1/4.2 regression] ICE on invalid constructor definition reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-05-02 16:23 ` [Bug c++/27309] [4.0/4.1 " mmitchel at gcc dot gnu dot org
@ 2006-05-03 10:34 ` reichelt at gcc dot gnu dot org
  2006-05-03 10:35 ` reichelt at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-03 10:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from reichelt at gcc dot gnu dot org  2006-05-03 10:34 -------
*** Bug 27379 has been marked as a duplicate of this bug. ***


-- 


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


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

* [Bug c++/27309] [4.0/4.1 regression] ICE on invalid constructor definition
  2006-04-25 13:18 [Bug c++/27309] New: [4.0/4.1/4.2 regression] ICE on invalid constructor definition reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-05-03 10:34 ` reichelt at gcc dot gnu dot org
@ 2006-05-03 10:35 ` reichelt at gcc dot gnu dot org
  2006-05-03 10:38 ` reichelt at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-03 10:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from reichelt at gcc dot gnu dot org  2006-05-03 10:35 -------
*** Bug 27380 has been marked as a duplicate of this bug. ***


-- 


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


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

* [Bug c++/27309] [4.0/4.1 regression] ICE on invalid constructor definition
  2006-04-25 13:18 [Bug c++/27309] New: [4.0/4.1/4.2 regression] ICE on invalid constructor definition reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-05-03 10:35 ` reichelt at gcc dot gnu dot org
@ 2006-05-03 10:38 ` reichelt at gcc dot gnu dot org
  2006-05-03 14:51 ` mark at codesourcery dot com
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-03 10:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from reichelt at gcc dot gnu dot org  2006-05-03 10:38 -------
Mark, do you want to add some of the testcases from PR27379 and PR27380
to the testsuite as their mode of failure is a little bit different
although the underlying problem seems to be the same?


-- 


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


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

* [Bug c++/27309] [4.0/4.1 regression] ICE on invalid constructor definition
  2006-04-25 13:18 [Bug c++/27309] New: [4.0/4.1/4.2 regression] ICE on invalid constructor definition reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-05-03 10:38 ` reichelt at gcc dot gnu dot org
@ 2006-05-03 14:51 ` mark at codesourcery dot com
  2006-05-14 22:30 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mark at codesourcery dot com @ 2006-05-03 14:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from mark at codesourcery dot com  2006-05-03 14:51 -------
Subject: Re:  [4.0/4.1 regression] ICE on invalid constructor
 definition

reichelt at gcc dot gnu dot org wrote:
> ------- Comment #6 from reichelt at gcc dot gnu dot org  2006-05-03 10:38 -------
> Mark, do you want to add some of the testcases from PR27379 and PR27380
> to the testsuite as their mode of failure is a little bit different
> although the underlying problem seems to be the same?

There's certainly no harm in that, but I don't think we'll increase
coverage in any interesting way; the underlying cause really was the
same for all of those failures.


-- 


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


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

* [Bug c++/27309] [4.0/4.1 regression] ICE on invalid constructor definition
  2006-04-25 13:18 [Bug c++/27309] New: [4.0/4.1/4.2 regression] ICE on invalid constructor definition reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-05-03 14:51 ` mark at codesourcery dot com
@ 2006-05-14 22:30 ` mmitchel at gcc dot gnu dot org
  2006-05-25  2:40 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-14 22:30 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug c++/27309] [4.0/4.1 regression] ICE on invalid constructor definition
  2006-04-25 13:18 [Bug c++/27309] New: [4.0/4.1/4.2 regression] ICE on invalid constructor definition reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2006-05-14 22:30 ` mmitchel at gcc dot gnu dot org
@ 2006-05-25  2:40 ` mmitchel at gcc dot gnu dot org
  2007-02-14  9:11 ` mmitchel at gcc dot gnu dot org
  2008-07-04 15:30 ` [Bug c++/27309] [4.1 " jsm28 at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-25  2:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from mmitchel at gcc dot gnu dot org  2006-05-25 02:34 -------
Will not be fixed in 4.1.1; adjust target milestone to 4.1.2.


-- 

mmitchel at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/27309] [4.0/4.1 regression] ICE on invalid constructor definition
  2006-04-25 13:18 [Bug c++/27309] New: [4.0/4.1/4.2 regression] ICE on invalid constructor definition reichelt at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2006-05-25  2:40 ` mmitchel at gcc dot gnu dot org
@ 2007-02-14  9:11 ` mmitchel at gcc dot gnu dot org
  2008-07-04 15:30 ` [Bug c++/27309] [4.1 " jsm28 at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14  9:11 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.2                       |4.1.3


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


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

* [Bug c++/27309] [4.1 regression] ICE on invalid constructor definition
  2006-04-25 13:18 [Bug c++/27309] New: [4.0/4.1/4.2 regression] ICE on invalid constructor definition reichelt at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2007-02-14  9:11 ` mmitchel at gcc dot gnu dot org
@ 2008-07-04 15:30 ` jsm28 at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 15:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jsm28 at gcc dot gnu dot org  2008-07-04 15:29 -------
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|4.0.4                       |4.0.4 4.1.3
      Known to work|                            |4.2.0
         Resolution|                            |FIXED
   Target Milestone|4.1.3                       |4.2.0


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


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

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

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-25 13:18 [Bug c++/27309] New: [4.0/4.1/4.2 regression] ICE on invalid constructor definition reichelt at gcc dot gnu dot org
2006-04-25 18:32 ` [Bug c++/27309] " pinskia at gcc dot gnu dot org
2006-04-25 21:33 ` pinskia at gcc dot gnu dot org
2006-05-02 15:59 ` mmitchel at gcc dot gnu dot org
2006-05-02 16:23 ` [Bug c++/27309] [4.0/4.1 " mmitchel at gcc dot gnu dot org
2006-05-03 10:34 ` reichelt at gcc dot gnu dot org
2006-05-03 10:35 ` reichelt at gcc dot gnu dot org
2006-05-03 10:38 ` reichelt at gcc dot gnu dot org
2006-05-03 14:51 ` mark at codesourcery dot com
2006-05-14 22:30 ` mmitchel at gcc dot gnu dot org
2006-05-25  2:40 ` mmitchel at gcc dot gnu dot org
2007-02-14  9:11 ` mmitchel at gcc dot gnu dot org
2008-07-04 15:30 ` [Bug c++/27309] [4.1 " 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).