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++/34383] New: [4.3] ICE on Usage of default function template argument


#include <tr1/type_traits>

template<typename T1, typename T2, template<typename T1, typename T2> class
Comp=std::tr1::is_same> void
STATIC_ASSERT( T2 t2=T2(), T1 t1=T1() )
{
  static_assert( Comp<T1, T2>::value, "" );
}

int main()
{
        unsigned int b;
        STATIC_ASSERT<int>(b);
}


g++-4.3.0  -std=c++0x  -c -o test.o test.cpp
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v4/tr1_impl/type_traits: In
function 'int main()':
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v4/tr1_impl/type_traits:302:
internal compiler error: Segmentation fault
Please submit a full bug report,...


-- 
           Summary: [4.3] ICE on Usage of default function template argument
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rbuergel at web dot de


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


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