public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33046]  New: ICE on explicit/partial template static member specialization mix-up
@ 2007-08-11  9:48 gcc-bugzilla at waba dot be
  2007-08-11 11:28 ` [Bug c++/33046] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: gcc-bugzilla at waba dot be @ 2007-08-11  9:48 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1136 bytes --]

g++ 4 will ICE when provided the explicit template specialization of a static
class member with an extra template argument (like for a partial spec):

  template<typename T>
  struct S { static int v; };

  template<typename T> // instead of template<>
  int S<int>::v;

g++ 3.3.6 and 3.4.6 compile this without complaining. g++ 4.1.3, 4.2.1 and
yesterday's SVN (r127350) produce an ICE:

  $ bin/g++ -c /tmp/t.cpp
  /tmp/t.cpp:4: internal compiler error: in import_export_decl, at
cp/decl2.c:1965
  Please submit...

Expected output:
  template parameters not used in partial specialization: ‘T’


-- 
           Summary: ICE on explicit/partial template static member
                    specialization mix-up
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gcc-bugzilla at waba dot be
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


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


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

* [Bug c++/33046] ICE on explicit/partial template static member specialization mix-up
  2007-08-11  9:48 [Bug c++/33046] New: ICE on explicit/partial template static member specialization mix-up gcc-bugzilla at waba dot be
@ 2007-08-11 11:28 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-11 11:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-08-11 11:27 -------


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


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-08-11 11:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-11  9:48 [Bug c++/33046] New: ICE on explicit/partial template static member specialization mix-up gcc-bugzilla at waba dot be
2007-08-11 11:28 ` [Bug c++/33046] " pinskia 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).