public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30722]  New: ICE on invalid template code #2
@ 2007-02-06 21:38 v dot haisman at sh dot cvut dot cz
  2007-02-09  0:34 ` [Bug c++/30722] " reichelt at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2007-02-06 21:38 UTC (permalink / raw)
  To: gcc-bugs

This has been derived from test case in PR 30721 but because it ICEs at
different place I report it as different bug.

---------8<--------------

template <typename Numeric>
struct Table
{
  typedef struct
  {
    const char * const name;
  } Tableitem;

  static const Tableitem entries[];
};

enum funky { feeling };

template<funky>
const Table<funky>::Tableitem Table<funky>::entries[] = { {""} };

---------8<--------------

Error:

logout::wilx:~/tmp> g++42 -o ice ice.cxx
ice.cxx:14: internal compiler error: in import_export_decl, at cp/decl2.c:1956
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

GCC:

logout::wilx:~/tmp> g++42 -v
Using built-in specs.
Target: i386-portbld-freebsd6.2
Configured with: ./..//gcc-4.2-20070117/configure --disable-nls
--with-system-zlib --with-libiconv-prefix=/usr/local --with-gmp=/usr/local
--program-suffix=42 --libdir=/usr/local/lib/gcc-4.2.0
--with-gxx-include-dir=/usr/local/lib/gcc-4.2.0/include/c++/
--infodir=/usr/local/info/gcc42 --disable-rpath --prefix=/usr/local
i386-portbld-freebsd6.2
Thread model: posix
gcc version 4.2.0 20070117 (prerelease)


-- 
           Summary: ICE on invalid template code #2
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: v dot haisman at sh dot cvut dot cz
 GCC build triplet: i386-portbld-freebsd6.2
  GCC host triplet: i386-portbld-freebsd6.2
GCC target triplet: i386-portbld-freebsd6.2


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


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

* [Bug c++/30722] ICE on invalid template code #2
  2007-02-06 21:38 [Bug c++/30722] New: ICE on invalid template code #2 v dot haisman at sh dot cvut dot cz
@ 2007-02-09  0:34 ` reichelt at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-02-09  0:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from reichelt at gcc dot gnu dot org  2007-02-09 00:33 -------
See second testcase in comment #1 of PR24791.


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


-- 

reichelt at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-02-09  0:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-06 21:38 [Bug c++/30722] New: ICE on invalid template code #2 v dot haisman at sh dot cvut dot cz
2007-02-09  0:34 ` [Bug c++/30722] " 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).