public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11348] New: internal compiler error: tree check: expected var_decl, have error_mark in tsubst_decl, at cp/pt.c:5872
@ 2003-06-27 11:49 carlo at alinoe dot com
  2003-06-27 13:06 ` [Bug c++/11348] " ehrhardt at mathematik dot uni-ulm dot de
  0 siblings, 1 reply; 2+ messages in thread
From: carlo at alinoe dot com @ 2003-06-27 11:49 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: internal compiler error: tree check: expected var_decl,
                    have error_mark in tsubst_decl, at cp/pt.c:5872
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: carlo at alinoe dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-gnu-linux
  GCC host triplet: i686-gnu-linux
GCC target triplet: i686-gnu-linux

Current CVS,
gcc version 3.4 20030626 (experimental)
causes ICE on illegal code.

To reproduce, compile the following code snippet:

------------------
#include <string>

template<typename who_cares> struct allocator_adaptor { };
typedef allocator_adaptor<I_dont_exist> my_allocator;                   // Error
type
std::basic_string<char, std::char_traits<char>, my_allocator> str;      // ICE
------------------

Output here:

>g++-cvs-3.4 -v -c troep.cc
Reading specs from /usr/local/gcc-cvs-3.4/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs
Configured with: /usr/src/gcc/gcc-cvs-3.4/configure
--prefix=/usr/local/gcc-cvs-3.4 --enable-shared --with-gnu-as --with-gnu-ld
--enable-languages=c++ --enable-debug --enable-threads
Thread model: posix
gcc version 3.4 20030626 (experimental)
 /usr/local/gcc-cvs-3.4/lib/gcc-lib/i686-pc-linux-gnu/3.4/cc1plus -quiet -v
-D_GNU_SOURCE troep.cc -quiet -dumpbase troep.cc -mtune=pentiumpro -auxbase
troep -version -o /tmp/ccTQ7wko.s
ignoring nonexistent directory "/usr/local/gcc-cvs-3.4/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/gcc-cvs-3.4/include/c++/3.4
 /usr/local/gcc-cvs-3.4/include/c++/3.4/i686-pc-linux-gnu
 /usr/local/gcc-cvs-3.4/include/c++/3.4/backward
 /usr/local/include
 /usr/local/gcc-cvs-3.4/include
 /usr/local/gcc-cvs-3.4/lib/gcc-lib/i686-pc-linux-gnu/3.4/include
 /usr/include
End of search list.
GNU C++ version 3.4 20030626 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.4 20030626 (experimental).
GGC heuristics: --param ggc-min-expand=55 --param ggc-min-heapsize=48205
troep.cc:4: error: `I_dont_exist' was not declared in this scope
troep.cc:4: error: template argument 1 is invalid
troep.cc:4: error: ISO C++ forbids declaration of `my_allocator' with no type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h: In instantiation of
`std::basic_string<char, std::char_traits<char>, my_allocator>':
troep.cc:5:   instantiated from here
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:116: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:117: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:118: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:119: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:120: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:121: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:122: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:124: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:125: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:126: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:251: error: no type
   named `size_type' in `class std::basic_string<char, std::char_traits<char>,
   my_allocator>'
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h: In instantiation of
`std::basic_string<char, std::char_traits<char>, my_allocator>::_Alloc_hider':
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:255:   instantiated
from `std::basic_string<char, std::char_traits<char>, my_allocator>'
troep.cc:5:   instantiated from here
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:255: error: base
   type `my_allocator' fails to be a struct or class type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h: In instantiation of
`std::basic_string<char, std::char_traits<char>, my_allocator>':
troep.cc:5:   instantiated from here
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:272: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:275: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:286: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:295: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:313: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:317: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.tcc:404: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.tcc:206: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.tcc:214: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.tcc:221: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.tcc:234: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:379: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:386: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:390: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:397: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:401: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:405: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:409: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:413: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:418: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:421: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:424: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.tcc:613: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:430: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:433: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.tcc:460: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:447: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:451: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:458: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:466: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.tcc:716: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.tcc:732: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.tcc:743: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.tcc:264: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.tcc:277: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:523: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:532: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:536: error: `
   my_allocator' is not a class, struct, or union type
/usr/local/gcc-cvs-3.4/include/c++/3.4/bits/basic_string.h:536: internal
compiler error: tree
   check: expected var_decl, have error_mark in tsubst_decl, at cp/pt.c:5872
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug c++/11348] internal compiler error: tree check: expected var_decl, have error_mark in tsubst_decl, at cp/pt.c:5872
  2003-06-27 11:49 [Bug c++/11348] New: internal compiler error: tree check: expected var_decl, have error_mark in tsubst_decl, at cp/pt.c:5872 carlo at alinoe dot com
@ 2003-06-27 13:06 ` ehrhardt at mathematik dot uni-ulm dot de
  0 siblings, 0 replies; 2+ messages in thread
From: ehrhardt at mathematik dot uni-ulm dot de @ 2003-06-27 13:06 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


ehrhardt at mathematik dot uni-ulm dot de changed:

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


------- Additional Comments From ehrhardt at mathematik dot uni-ulm dot de  2003-06-27 13:06 -------


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


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

end of thread, other threads:[~2003-06-27 13:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-27 11:49 [Bug c++/11348] New: internal compiler error: tree check: expected var_decl, have error_mark in tsubst_decl, at cp/pt.c:5872 carlo at alinoe dot com
2003-06-27 13:06 ` [Bug c++/11348] " ehrhardt at mathematik dot uni-ulm dot de

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