[Bug c++/34383] New: [4.3] ICE on Usage of default function template argument
rbuergel at web dot de
gcc-bugzilla@gcc.gnu.org
Fri Dec 7 18:11:00 GMT 2007
#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
More information about the Gcc-bugs
mailing list