public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40406]  New: ICE with broken template member declaration
@ 2009-06-10 20:01 reichelt at gcc dot gnu dot org
  2009-08-25 15:34 ` [Bug c++/40406] " bangerth at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-06-10 20:01 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since at least GCC 2.95.3:

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

bug.cc:3:36: error: extra qualification 'A<<anonymous> >::' on member 'foo'
bug.cc:3:45: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


-- 
           Summary: ICE with broken template member declaration
           Product: gcc
           Version: 4.5.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=40406


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

* [Bug c++/40406] ICE with broken template member declaration
  2009-06-10 20:01 [Bug c++/40406] New: ICE with broken template member declaration reichelt at gcc dot gnu dot org
@ 2009-08-25 15:34 ` bangerth at gmail dot com
  2010-05-05  0:37 ` paolo dot carlini at oracle dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bangerth at gmail dot com @ 2009-08-25 15:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from bangerth at gmail dot com  2009-08-25 15:34 -------
Confirmed.


-- 

bangerth at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bangerth at gmail dot com
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-08-25 15:34:18
               date|                            |


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


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

* [Bug c++/40406] ICE with broken template member declaration
  2009-06-10 20:01 [Bug c++/40406] New: ICE with broken template member declaration reichelt at gcc dot gnu dot org
  2009-08-25 15:34 ` [Bug c++/40406] " bangerth at gmail dot com
@ 2010-05-05  0:37 ` paolo dot carlini at oracle dot com
  2010-05-06  6:05 ` reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-05-05  0:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from paolo dot carlini at oracle dot com  2010-05-05 00:37 -------
Seems already fixed in mainline and 4_5-branch. Volker, can you double check?
Thanks.


-- 


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


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

* [Bug c++/40406] ICE with broken template member declaration
  2009-06-10 20:01 [Bug c++/40406] New: ICE with broken template member declaration reichelt at gcc dot gnu dot org
  2009-08-25 15:34 ` [Bug c++/40406] " bangerth at gmail dot com
  2010-05-05  0:37 ` paolo dot carlini at oracle dot com
@ 2010-05-06  6:05 ` reichelt at gcc dot gnu dot org
  2010-05-06 15:35 ` paolo dot carlini at oracle dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2010-05-06  6:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from reichelt at gcc dot gnu dot org  2010-05-06 06:05 -------
Yes, it's fixed in GCC 4.5.0 and later.
Paolo, would you mind adding a testcase?


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo dot carlini at oracle
                   |                            |dot com
   Target Milestone|---                         |4.5.0


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


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

* [Bug c++/40406] ICE with broken template member declaration
  2009-06-10 20:01 [Bug c++/40406] New: ICE with broken template member declaration reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-05-06  6:05 ` reichelt at gcc dot gnu dot org
@ 2010-05-06 15:35 ` paolo dot carlini at oracle dot com
  2010-05-06 16:08 ` paolo at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-05-06 15:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from paolo dot carlini at oracle dot com  2010-05-06 15:34 -------
Sure, I'll do it later today.


-- 


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


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

* [Bug c++/40406] ICE with broken template member declaration
  2009-06-10 20:01 [Bug c++/40406] New: ICE with broken template member declaration reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2010-05-06 16:08 ` paolo at gcc dot gnu dot org
@ 2010-05-06 16:08 ` paolo at gcc dot gnu dot org
  2010-05-06 16:09 ` paolo dot carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu dot org @ 2010-05-06 16:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from paolo at gcc dot gnu dot org  2010-05-06 16:07 -------
Subject: Bug 40406

Author: paolo
Date: Thu May  6 16:07:02 2010
New Revision: 159112

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159112
Log:
2010-05-06  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/40406
        * g++.dg/template/crash96.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/template/crash96.C
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/40406] ICE with broken template member declaration
  2009-06-10 20:01 [Bug c++/40406] New: ICE with broken template member declaration reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-05-06 15:35 ` paolo dot carlini at oracle dot com
@ 2010-05-06 16:08 ` paolo at gcc dot gnu dot org
  2010-05-06 16:08 ` paolo at gcc dot gnu dot org
  2010-05-06 16:09 ` paolo dot carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu dot org @ 2010-05-06 16:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from paolo at gcc dot gnu dot org  2010-05-06 16:08 -------
Subject: Bug 40406

Author: paolo
Date: Thu May  6 16:07:28 2010
New Revision: 159113

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159113
Log:
2010-05-06  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/40406
        * g++.dg/template/crash96.C: New.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/g++.dg/template/crash96.C
Modified:
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/40406] ICE with broken template member declaration
  2009-06-10 20:01 [Bug c++/40406] New: ICE with broken template member declaration reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2010-05-06 16:08 ` paolo at gcc dot gnu dot org
@ 2010-05-06 16:09 ` paolo dot carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-05-06 16:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from paolo dot carlini at oracle dot com  2010-05-06 16:09 -------
Done.


-- 

paolo dot carlini at oracle dot com changed:

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


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


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

end of thread, other threads:[~2010-05-06 16:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-10 20:01 [Bug c++/40406] New: ICE with broken template member declaration reichelt at gcc dot gnu dot org
2009-08-25 15:34 ` [Bug c++/40406] " bangerth at gmail dot com
2010-05-05  0:37 ` paolo dot carlini at oracle dot com
2010-05-06  6:05 ` reichelt at gcc dot gnu dot org
2010-05-06 15:35 ` paolo dot carlini at oracle dot com
2010-05-06 16:08 ` paolo at gcc dot gnu dot org
2010-05-06 16:08 ` paolo at gcc dot gnu dot org
2010-05-06 16:09 ` paolo dot carlini at oracle dot com

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