This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/47326] New: ICE in tsubst_copy (triggered by dependency of return type on parameter pack size)


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

           Summary: ICE in tsubst_copy (triggered by dependency of return
                    type on parameter pack size)
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: schmidt-thieme@ismll.de


gcc (snapshot gcc-4.6-20110115) throws an internal compiler error when 
compiling the attached file
"bug-gcc-ICE-return_type_depends_on_variadic_size.ii"

> g++ -std=c++0x bug-gcc-ICE-return_type_depends_on_variadic_size.ii
bug-gcc-ICE-return_type_depends_on_variadic_size.cpp: In function âint main()â:
bug-gcc-ICE-return_type_depends_on_variadic_size.cpp:12:8: internal compiler
error:
 in tsubst_copy, at cp/pt.c:11242    

This bug is similar, but not identical to  
  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47289
reported a couple of days ago by me and meanwhile fixed by Jason 
Merrill -- thank you a a lot ! (as gcc/testsuite/g++.dg/cpp0x/variadic105.C 
now does not throw an ICE anymore.)

gcc was build from source and configured via
> configure --prefix=/opt/prog/gcc/ -enable-languages=c,c++,fortran --disable-multilib
on ubuntu
> uname -a
Linux lst-desktop 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 05:14:15 UTC 2010
x86_64 GNU/Linux


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]