public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43953]  New: ICE: dependent_type_p, at cp/pt.c:17404
@ 2010-05-01  6:51 deligonul at gmail dot com
  2010-05-01  6:53 ` [Bug c++/43953] " deligonul at gmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: deligonul at gmail dot com @ 2010-05-01  6:51 UTC (permalink / raw)
  To: gcc-bugs

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

The code below causes an ICE in GCC 4.5.0.  It compiles fine in GCC 4.4.3.

$ g++ -save-temps -o crash crash.cpp
crash.cpp: In function ‘int main()’:
crash.cpp:23:22: internal compiler error: in dependent_type_p, at cp/pt.c:17404
Please submit a full bug report, ...


Output of g++ -v:

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/home/test/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --prefix=/home/test --without-arch32
--without-cpu32 --with-arch64 --with-cpu64 --disable-multilib
Thread model: posix
gcc version 4.5.0 (GCC) 


Test Case:


template <typename T, 
                typename U,
                typename T::type V> 
class bad;

// partial specialization
// for T = U
template<typename T, 
                typename T::type V>
class bad<T, T, V>
{
public:
        static void foo() {}
};

struct dummy 
{
        typedef int type;
};

int main()
{
        bad<dummy, dummy, 0>::foo();
}


-- 
           Summary: ICE: dependent_type_p, at cp/pt.c:17404
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: deligonul at gmail dot com
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

end of thread, other threads:[~2010-05-04 10:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-01  6:51 [Bug c++/43953] New: ICE: dependent_type_p, at cp/pt.c:17404 deligonul at gmail dot com
2010-05-01  6:53 ` [Bug c++/43953] " deligonul at gmail dot com
2010-05-01  7:09 ` deligonul at gmail dot com
2010-05-01 13:58 ` hjl dot tools at gmail dot com
2010-05-03 17:54 ` dodji at gcc dot gnu dot org
2010-05-03 18:10 ` [Bug c++/43953] [4.5/4.6 regression] " hjl dot tools at gmail dot com
2010-05-04  9:50 ` dodji at gcc dot gnu dot org
2010-05-04  9:58 ` dodji at gcc dot gnu dot org
2010-05-04 10:01 ` dodji at gcc dot gnu dot org
2010-05-04 10:31 ` dodji 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).