public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13538] New: ICE specializing partially specialized function template in class template
@ 2004-01-01  5:11 lawless at spamcop dot net
  2004-01-01  5:12 ` [Bug c++/13538] " lawless at spamcop dot net
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: lawless at spamcop dot net @ 2004-01-01  5:11 UTC (permalink / raw)
  To: gcc-bugs

g++ returns:

gcc_spcl_bug.C:21: internal compiler error: in register_specialization, at 
cp/pt.c:968

when compiling attached test case with

g++ -nostdinc -c gcc_spcl_bug.C

-- 
           Summary: ICE specializing partially specialized function template
                    in class template
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lawless at spamcop dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i586-pc-linux-gnu
  GCC host triplet: i586-pc-linux-gnu
GCC target triplet: i586-pc-linux-gnu


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


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

* [Bug c++/13538] ICE specializing partially specialized function template in class template
  2004-01-01  5:11 [Bug c++/13538] New: ICE specializing partially specialized function template in class template lawless at spamcop dot net
@ 2004-01-01  5:12 ` lawless at spamcop dot net
  2004-01-01  5:14 ` lawless at spamcop dot net
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: lawless at spamcop dot net @ 2004-01-01  5:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From lawless at spamcop dot net  2004-01-01 05:12 -------
Created an attachment (id=5396)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5396&action=view)
test case


-- 


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


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

* [Bug c++/13538] ICE specializing partially specialized function template in class template
  2004-01-01  5:11 [Bug c++/13538] New: ICE specializing partially specialized function template in class template lawless at spamcop dot net
  2004-01-01  5:12 ` [Bug c++/13538] " lawless at spamcop dot net
@ 2004-01-01  5:14 ` lawless at spamcop dot net
  2004-01-01  5:18 ` pinskia at gcc dot gnu dot org
  2004-01-11 12:00 ` giovannibajo at libero dot it
  3 siblings, 0 replies; 5+ messages in thread
From: lawless at spamcop dot net @ 2004-01-01  5:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From lawless at spamcop dot net  2004-01-01 05:14 -------
Forgot to mention:

Testcase compiles fine with recent Sun V7 and AIX V5 compilers.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P1


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


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

* [Bug c++/13538] ICE specializing partially specialized function template in class template
  2004-01-01  5:11 [Bug c++/13538] New: ICE specializing partially specialized function template in class template lawless at spamcop dot net
  2004-01-01  5:12 ` [Bug c++/13538] " lawless at spamcop dot net
  2004-01-01  5:14 ` lawless at spamcop dot net
@ 2004-01-01  5:18 ` pinskia at gcc dot gnu dot org
  2004-01-11 12:00 ` giovannibajo at libero dot it
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-01  5:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-01 05:18 -------
Confirmed but not a regression as it ICEs from 2.91.6 all the way to 3.4, the mainline.
Here is the comment around where GCC iCEs:
  /* There should be as many levels of arguments as there are
     levels of parameters.  */
  my_friendly_assert (TMPL_ARGS_DEPTH (args)
                      == TMPL_PARMS_DEPTH (DECL_TEMPLATE_PARMS (tmpl)),
                      0);

ICC 6.0 also accepts the code.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
           Priority|P1                          |P2
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-01 05:18:57
               date|                            |


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


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

* [Bug c++/13538] ICE specializing partially specialized function template in class template
  2004-01-01  5:11 [Bug c++/13538] New: ICE specializing partially specialized function template in class template lawless at spamcop dot net
                   ` (2 preceding siblings ...)
  2004-01-01  5:18 ` pinskia at gcc dot gnu dot org
@ 2004-01-11 12:00 ` giovannibajo at libero dot it
  3 siblings, 0 replies; 5+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-11 12:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-01-11 12:00 -------


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

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


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


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

end of thread, other threads:[~2004-01-11 12:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-01  5:11 [Bug c++/13538] New: ICE specializing partially specialized function template in class template lawless at spamcop dot net
2004-01-01  5:12 ` [Bug c++/13538] " lawless at spamcop dot net
2004-01-01  5:14 ` lawless at spamcop dot net
2004-01-01  5:18 ` pinskia at gcc dot gnu dot org
2004-01-11 12:00 ` giovannibajo at libero dot it

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