[Bug c++/53564] New: ICE: tree check: expected tree that contains 'decl minimal' structure, have 'baselink' in check_elaborated_type_specifier, at cp/decl.c:11518

y121516 at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Jun 3 09:19:00 GMT 2012


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

             Bug #: 53564
           Summary: ICE: tree check: expected tree that contains 'decl
                    minimal' structure, have 'baselink' in
                    check_elaborated_type_specifier, at cp/decl.c:11518
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: y121516@gmail.com


ICE occured.


source:

$ cat a.cpp
template<class T>
struct s
{
 template<class U>
 s(){}
};

int main() {
 struct s<void>::s<void> a;
}


output:

$ bin/gcc4.8/bin/g++ a.cpp
a.cpp: In function 'int main()':
a.cpp:9:18: error: using typedef-name 's<void>' after 'struct'
  struct s<void>::s<void> a;
                  ^
a.cpp:9:18: internal compiler error: tree check: expected tree that contains
'decl minimal' structure, have 'baselink' in check_elaborated_type_specifier,
at cp/decl.c:11518
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


OS: Windows XP
GCC version:

$ bin/gcc4.8/bin/g++ -v
Built by Equation Solution <http://www.Equation.com>.
Using built-in specs.
COLLECT_GCC=C:\cygwin\home\Yuhki\bin\gcc4.8\bin\g++.exe
COLLECT_LTO_WRAPPER=c:/cygwin/home/yuhki/bin/gcc4.8/bin/../libexec/gcc/i686-pc-mingw32/4.8.0/lto-wrapper.exe
Target: i686-pc-mingw32
Configured with: ../gcc-4.8-20120520-mingw/configure --host=i686-pc-mingw32
--build=x86_64-unknown-linux-gnu --target=i686-pc-mingw32
--prefix=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/gcc/4.8-20120520
--with-gcc --with-gnu-as --with-gnu-ld --with-host-libstdcxx='-lstdc++ -lsupc++
-lm' --with-ppl=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/ppl
--with-cloog=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/cloog
--with-gmp=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/gmp
--with-mpfr=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/mpfr
--with-mpc=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/mpc
--with-sysroot=/home/gfortran/gcc-home/binary/mingw32/cross/x86_32/gcc/4.8-20120520
--disable-shared --disable-nls --disable-tls --disable-win32-registry
--enable-libquadmath-support --enable-libquadmath
--enable-languages=c,c++,fortran --enable-libgomp --enable-threads=win32
--enable-lto --enable-static --enable-shared=lto-plugin --enable-plugins
--enable-ld=yes --enable-cloog-backend=ppl
Thread model: win32
gcc version 4.8.0 20120520 (experimental) (GCC)


note:

Source code is test on GCC 4.8.0 experimental. Same code use at Bug 53563 for
GCC 4.6.3.



More information about the Gcc-bugs mailing list