public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30156] [4.1/4.2/4.3 regression] ICE on invalid template declaration
  2006-12-11 21:08 [Bug c++/30156] New: [4.1/4.2/4.3 regression] ICE on invalid template declaration reichelt at gcc dot gnu dot org
@ 2006-12-11 21:08 ` reichelt at gcc dot gnu dot org
  2006-12-11 21:12 ` reichelt at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-12-11 21:08 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/30156]  New: [4.1/4.2/4.3 regression] ICE on invalid template declaration
@ 2006-12-11 21:08 reichelt at gcc dot gnu dot org
  2006-12-11 21:08 ` [Bug c++/30156] " reichelt at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-12-11 21:08 UTC (permalink / raw)
  To: gcc-bugs

The following invalid testcase causes an ICE on the 4.1 branch, 4.2 branch
and mainline (4.1.0 and 4.1.1 are not affected, though):

====================================
struct A
{
    template<int> int foo(X);
};
====================================

The underlying problem is the same as in PR27961, but cannot be papered
over as easily in this case ;-)


-- 
           Summary: [4.1/4.2/4.3 regression] ICE on invalid template
                    declaration
           Product: gcc
           Version: 4.3.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
 BugsThisDependsOn: 27961


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


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

* [Bug c++/30156] [4.1/4.2/4.3 regression] ICE on invalid template declaration
  2006-12-11 21:08 [Bug c++/30156] New: [4.1/4.2/4.3 regression] ICE on invalid template declaration reichelt at gcc dot gnu dot org
  2006-12-11 21:08 ` [Bug c++/30156] " reichelt at gcc dot gnu dot org
@ 2006-12-11 21:12 ` reichelt at gcc dot gnu dot org
  2006-12-11 23:17 ` lmillward at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-12-11 21:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from reichelt at gcc dot gnu dot org  2006-12-11 21:12 -------
Sorry, forgot to add the error message:

bug.cc:3: error: 'X' was not declared in this scope
bug.cc:3: internal compiler error: tree check: expected var_decl, have
field_decl in cp_finish_decl, at cp/decl.c:5092
Please submit a full bug report, [etc.]


-- 


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


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

* [Bug c++/30156] [4.1/4.2/4.3 regression] ICE on invalid template declaration
  2006-12-11 21:08 [Bug c++/30156] New: [4.1/4.2/4.3 regression] ICE on invalid template declaration reichelt at gcc dot gnu dot org
  2006-12-11 21:08 ` [Bug c++/30156] " reichelt at gcc dot gnu dot org
  2006-12-11 21:12 ` reichelt at gcc dot gnu dot org
@ 2006-12-11 23:17 ` lmillward at gcc dot gnu dot org
  2006-12-12 21:45 ` patchapp at dberlin dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-12-11 23:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from lmillward at gcc dot gnu dot org  2006-12-11 23:17 -------
I did post a patch to fix this following your comments on the patch for PR27961
here - http://gcc.gnu.org/ml/gcc-patches/2006-10/msg00867.html. It seems like
this one slipped through the cracks.

I'll give it another bootstrap and regression test against current mainline and
resubmit.


-- 

lmillward at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |lmillward at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-12-11 23:17:07
               date|                            |


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


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

* [Bug c++/30156] [4.1/4.2/4.3 regression] ICE on invalid template declaration
  2006-12-11 21:08 [Bug c++/30156] New: [4.1/4.2/4.3 regression] ICE on invalid template declaration reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-12-11 23:17 ` lmillward at gcc dot gnu dot org
@ 2006-12-12 21:45 ` patchapp at dberlin dot org
  2007-02-05  5:40 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: patchapp at dberlin dot org @ 2006-12-12 21:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from patchapp at dberlin dot org  2006-12-12 21:45 -------
Subject: Bug number PR c++/30156

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-12/msg00892.html


-- 


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


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

* [Bug c++/30156] [4.1/4.2/4.3 regression] ICE on invalid template declaration
  2006-12-11 21:08 [Bug c++/30156] New: [4.1/4.2/4.3 regression] ICE on invalid template declaration reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-12-12 21:45 ` patchapp at dberlin dot org
@ 2007-02-05  5:40 ` mmitchel at gcc dot gnu dot org
  2007-02-14  9:41 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-05  5:40 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


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


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

* [Bug c++/30156] [4.1/4.2/4.3 regression] ICE on invalid template declaration
  2006-12-11 21:08 [Bug c++/30156] New: [4.1/4.2/4.3 regression] ICE on invalid template declaration reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-02-05  5:40 ` mmitchel at gcc dot gnu dot org
@ 2007-02-14  9:41 ` mmitchel at gcc dot gnu dot org
  2008-07-04 21:46 ` [Bug c++/30156] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
  2008-09-07 23:18 ` reichelt at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14  9:41 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=30156


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

* [Bug c++/30156] [4.2/4.3/4.4 regression] ICE on invalid template declaration
  2006-12-11 21:08 [Bug c++/30156] New: [4.1/4.2/4.3 regression] ICE on invalid template declaration reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-02-14  9:41 ` mmitchel at gcc dot gnu dot org
@ 2008-07-04 21:46 ` jsm28 at gcc dot gnu dot org
  2008-09-07 23:18 ` reichelt at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 21:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jsm28 at gcc dot gnu dot org  2008-07-04 21:46 -------
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2/4.3/4.4 regression]|[4.2/4.3/4.4 regression] ICE
                   |ICE on invalid template     |on invalid template
                   |declaration                 |declaration
   Target Milestone|4.1.3                       |4.2.5


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


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

* [Bug c++/30156] [4.2/4.3/4.4 regression] ICE on invalid template declaration
  2006-12-11 21:08 [Bug c++/30156] New: [4.1/4.2/4.3 regression] ICE on invalid template declaration reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2008-07-04 21:46 ` [Bug c++/30156] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
@ 2008-09-07 23:18 ` reichelt at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-09-07 23:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from reichelt at gcc dot gnu dot org  2008-09-07 23:17 -------


*** This bug has been marked as a duplicate of 37348 ***


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2008-09-07 23:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-11 21:08 [Bug c++/30156] New: [4.1/4.2/4.3 regression] ICE on invalid template declaration reichelt at gcc dot gnu dot org
2006-12-11 21:08 ` [Bug c++/30156] " reichelt at gcc dot gnu dot org
2006-12-11 21:12 ` reichelt at gcc dot gnu dot org
2006-12-11 23:17 ` lmillward at gcc dot gnu dot org
2006-12-12 21:45 ` patchapp at dberlin dot org
2007-02-05  5:40 ` mmitchel at gcc dot gnu dot org
2007-02-14  9:41 ` mmitchel at gcc dot gnu dot org
2008-07-04 21:46 ` [Bug c++/30156] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-09-07 23:18 ` 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).