This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34383] New: [4.3] ICE on Usage of default function template argument
- From: "rbuergel at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Dec 2007 18:11:40 -0000
- Subject: [Bug c++/34383] New: [4.3] ICE on Usage of default function template argument
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
#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