public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/38646]  New: [4.3/4.4 regression] ICE with invalid specialization of variadic template
@ 2008-12-27 23:14 reichelt at gcc dot gnu dot org
  2008-12-27 23:14 ` [Bug c++/38646] " reichelt at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 16+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-12-27 23:14 UTC (permalink / raw)
  To: gcc-bugs

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

=============================================
template<int...> struct A;

template<int... N> struct A<N..., N...>
{
  template<typename> struct B;

  template<typename T> struct B<T*> {};
};
=============================================

bug.cc:3: error: parameter pack argument 'N ...' must be at the end of the
template argument list
bug.cc:7: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in template_class_depth, at cp/pt.c:314
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3/4.4 regression] ICE with invalid specialization of
                    variadic template
           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=38646


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

* [Bug c++/38646] [4.3/4.4 regression] ICE with invalid specialization of variadic template
  2008-12-27 23:14 [Bug c++/38646] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
@ 2008-12-27 23:14 ` reichelt at gcc dot gnu dot org
  2008-12-27 23:38 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-12-27 23:14 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=38646


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

* [Bug c++/38646] [4.3/4.4 regression] ICE with invalid specialization of variadic template
  2008-12-27 23:14 [Bug c++/38646] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
  2008-12-27 23:14 ` [Bug c++/38646] " reichelt at gcc dot gnu dot org
@ 2008-12-27 23:38 ` pinskia at gcc dot gnu dot org
  2008-12-29 23:01 ` rguenth at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-27 23:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-12-27 23:36 -------
Confirmed, only ICEs with checking turned on.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-checking
   Last reconfirmed|0000-00-00 00:00:00         |2008-12-27 23:36:15
               date|                            |


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


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

* [Bug c++/38646] [4.3/4.4 regression] ICE with invalid specialization of variadic template
  2008-12-27 23:14 [Bug c++/38646] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
  2008-12-27 23:14 ` [Bug c++/38646] " reichelt at gcc dot gnu dot org
  2008-12-27 23:38 ` pinskia at gcc dot gnu dot org
@ 2008-12-29 23:01 ` rguenth at gcc dot gnu dot org
  2009-01-24 10:28 ` rguenth at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-12-29 23:01 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/38646] [4.3/4.4 regression] ICE with invalid specialization of variadic template
  2008-12-27 23:14 [Bug c++/38646] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-12-29 23:01 ` rguenth at gcc dot gnu dot org
@ 2009-01-24 10:28 ` rguenth at gcc dot gnu dot org
  2009-01-26 18:20 ` paolo dot carlini at oracle dot com
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-24 10:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2009-01-24 10:21 -------
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=38646


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

* [Bug c++/38646] [4.3/4.4 regression] ICE with invalid specialization of variadic template
  2008-12-27 23:14 [Bug c++/38646] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-01-24 10:28 ` rguenth at gcc dot gnu dot org
@ 2009-01-26 18:20 ` paolo dot carlini at oracle dot com
  2009-08-04 12:46 ` [Bug c++/38646] [4.3/4.4/4.5 " rguenth at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-01-26 18:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from paolo dot carlini at oracle dot com  2009-01-26 18:20 -------
I'm having a look into this one...


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |paolo dot carlini at oracle
                   |dot org                     |dot com
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-12-27 23:36:15         |2009-01-26 18:20:47
               date|                            |


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


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

* [Bug c++/38646] [4.3/4.4/4.5 regression] ICE with invalid specialization of variadic template
  2008-12-27 23:14 [Bug c++/38646] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-01-26 18:20 ` paolo dot carlini at oracle dot com
@ 2009-08-04 12:46 ` rguenth at gcc dot gnu dot org
  2009-08-04 13:35 ` paolo dot carlini at oracle dot com
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-08-04 12:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-08-04 12:29 -------
GCC 4.3.4 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/38646] [4.3/4.4/4.5 regression] ICE with invalid specialization of variadic template
  2008-12-27 23:14 [Bug c++/38646] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-08-04 12:46 ` [Bug c++/38646] [4.3/4.4/4.5 " rguenth at gcc dot gnu dot org
@ 2009-08-04 13:35 ` paolo dot carlini at oracle dot com
  2009-08-04 16:36 ` [Bug c++/38646] [4.3/4.4 " paolo dot carlini at oracle dot com
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-08-04 13:35 UTC (permalink / raw)
  To: gcc-bugs



-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|paolo dot carlini at oracle |unassigned at gcc dot gnu
                   |dot com                     |dot org
             Status|ASSIGNED                    |NEW


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


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

* [Bug c++/38646] [4.3/4.4 regression] ICE with invalid specialization of variadic template
  2008-12-27 23:14 [Bug c++/38646] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2009-08-04 13:35 ` paolo dot carlini at oracle dot com
@ 2009-08-04 16:36 ` paolo dot carlini at oracle dot com
  2009-08-04 16:50 ` [Bug c++/38646] [4.3/4.4/4.5 " paolo dot carlini at oracle dot com
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-08-04 16:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from paolo dot carlini at oracle dot com  2009-08-04 16:35 -------
This one doesn't reproduce anymore in mainline.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.3/4.4/4.5 regression] ICE|[4.3/4.4 regression] ICE
                   |with invalid specialization |with invalid specialization
                   |of variadic template        |of variadic template


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


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

* [Bug c++/38646] [4.3/4.4/4.5 regression] ICE with invalid specialization of variadic template
  2008-12-27 23:14 [Bug c++/38646] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2009-08-04 16:36 ` [Bug c++/38646] [4.3/4.4 " paolo dot carlini at oracle dot com
@ 2009-08-04 16:50 ` paolo dot carlini at oracle dot com
  2009-11-15 21:39 ` simartin at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-08-04 16:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from paolo dot carlini at oracle dot com  2009-08-04 16:50 -------
Never mind, tried with a non-checking GCC...


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.3/4.4 regression] ICE    |[4.3/4.4/4.5 regression] ICE
                   |with invalid specialization |with invalid specialization
                   |of variadic template        |of variadic template


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


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

* [Bug c++/38646] [4.3/4.4/4.5 regression] ICE with invalid specialization of variadic template
  2008-12-27 23:14 [Bug c++/38646] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2009-08-04 16:50 ` [Bug c++/38646] [4.3/4.4/4.5 " paolo dot carlini at oracle dot com
@ 2009-11-15 21:39 ` simartin at gcc dot gnu dot org
  2009-11-20 21:37 ` simartin at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: simartin at gcc dot gnu dot org @ 2009-11-15 21:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from simartin at gcc dot gnu dot org  2009-11-15 21:38 -------
Patch submitted here:
  http://gcc.gnu.org/ml/gcc-patches/2009-11/msg00747.html


-- 

simartin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simartin at gcc dot gnu dot
                   |                            |org
   Last reconfirmed|2009-01-26 18:20:47         |2009-11-15 21:38:45
               date|                            |


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


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

* [Bug c++/38646] [4.3/4.4/4.5 regression] ICE with invalid specialization of variadic template
  2008-12-27 23:14 [Bug c++/38646] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2009-11-15 21:39 ` simartin at gcc dot gnu dot org
@ 2009-11-20 21:37 ` simartin at gcc dot gnu dot org
  2009-11-20 21:46 ` [Bug c++/38646] [4.3/4.4 " simartin at gcc dot gnu dot org
  2010-05-22 18:28 ` rguenth at gcc dot gnu dot org
  12 siblings, 0 replies; 16+ messages in thread
From: simartin at gcc dot gnu dot org @ 2009-11-20 21:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from simartin at gcc dot gnu dot org  2009-11-20 21:37 -------
Subject: Bug 38646

Author: simartin
Date: Fri Nov 20 21:37:23 2009
New Revision: 154378

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

2009-11-20  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/38646
        * pt.c (process_partial_specialization): Do not turn wrongly located
        parameter pack arguments into error_mark_node.
        Split too long lines into two.

gcc/testsuite/

2009-11-20  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/38646
        * g++.dg/cpp0x/pr38646.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/pr38646.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/38646] [4.3/4.4 regression] ICE with invalid specialization of variadic template
  2008-12-27 23:14 [Bug c++/38646] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2009-11-20 21:37 ` simartin at gcc dot gnu dot org
@ 2009-11-20 21:46 ` simartin at gcc dot gnu dot org
  2010-05-22 18:28 ` rguenth at gcc dot gnu dot org
  12 siblings, 0 replies; 16+ messages in thread
From: simartin at gcc dot gnu dot org @ 2009-11-20 21:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from simartin at gcc dot gnu dot org  2009-11-20 21:46 -------
Fixed in 4.5


-- 

simartin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.3/4.4/4.5 regression] ICE|[4.3/4.4 regression] ICE
                   |with invalid specialization |with invalid specialization
                   |of variadic template        |of variadic template


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


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

* [Bug c++/38646] [4.3/4.4 regression] ICE with invalid specialization of variadic template
  2008-12-27 23:14 [Bug c++/38646] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2009-11-20 21:46 ` [Bug c++/38646] [4.3/4.4 " simartin at gcc dot gnu dot org
@ 2010-05-22 18:28 ` rguenth at gcc dot gnu dot org
  12 siblings, 0 replies; 16+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-22 18:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from rguenth at gcc dot gnu dot org  2010-05-22 18:13 -------
GCC 4.3.5 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.5                       |4.3.6


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


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

* [Bug c++/38646] [4.3/4.4 regression] ICE with invalid specialization of variadic template
       [not found] <bug-38646-4@http.gcc.gnu.org/bugzilla/>
  2011-06-09 16:15 ` paolo.carlini at oracle dot com
@ 2011-06-23 18:02 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 16+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-06-23 18:02 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to work|                            |4.5.0
         Resolution|                            |FIXED
   Target Milestone|4.3.6                       |4.5.0

--- Comment #12 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-06-23 18:02:21 UTC ---
Fixed in 4.5.0.


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

* [Bug c++/38646] [4.3/4.4 regression] ICE with invalid specialization of variadic template
       [not found] <bug-38646-4@http.gcc.gnu.org/bugzilla/>
@ 2011-06-09 16:15 ` paolo.carlini at oracle dot com
  2011-06-23 18:02 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 16+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-06-09 16:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-06-09 16:14:50 UTC ---
Likewise, close as fixed in 4.5+?


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

end of thread, other threads:[~2011-06-23 18:02 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-27 23:14 [Bug c++/38646] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
2008-12-27 23:14 ` [Bug c++/38646] " reichelt at gcc dot gnu dot org
2008-12-27 23:38 ` pinskia at gcc dot gnu dot org
2008-12-29 23:01 ` rguenth at gcc dot gnu dot org
2009-01-24 10:28 ` rguenth at gcc dot gnu dot org
2009-01-26 18:20 ` paolo dot carlini at oracle dot com
2009-08-04 12:46 ` [Bug c++/38646] [4.3/4.4/4.5 " rguenth at gcc dot gnu dot org
2009-08-04 13:35 ` paolo dot carlini at oracle dot com
2009-08-04 16:36 ` [Bug c++/38646] [4.3/4.4 " paolo dot carlini at oracle dot com
2009-08-04 16:50 ` [Bug c++/38646] [4.3/4.4/4.5 " paolo dot carlini at oracle dot com
2009-11-15 21:39 ` simartin at gcc dot gnu dot org
2009-11-20 21:37 ` simartin at gcc dot gnu dot org
2009-11-20 21:46 ` [Bug c++/38646] [4.3/4.4 " simartin at gcc dot gnu dot org
2010-05-22 18:28 ` rguenth at gcc dot gnu dot org
     [not found] <bug-38646-4@http.gcc.gnu.org/bugzilla/>
2011-06-09 16:15 ` paolo.carlini at oracle dot com
2011-06-23 18:02 ` paolo.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).