http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59955
Bug ID: 59955 Summary: G++ 4.8 internal compiler error: Segmentation fault on (re?)defining a struct template as function template, when inside a struct tempate Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: wouter at voti dot nl Created attachment 31960 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31960&action=edit then offending source file The following code gives an internal compiler error: Segmentation fault template< int xyz > struct wovo { template< int n > void us(){} template< int n > struct us< n > {}; }; using G++ 4.8 cross-compiler for ARM, running on Windows "C:/Program Files (x86)/GNU Tools ARM Embedded/4.8 2013q4/bin/arm-none-eabi-g++" -fno-builtin -nostartfiles -fno-exceptions -mcpu=cortex-m0 -mthumb -fomit-frame-pointer -fno-threadsafe-statics -fno-use-cxa-get-exception-ptr -I. -Ic:/bmptk/bmptk/bmptk/bmptk -Ichips -Itargets -Ic:/bmptk/bmptk/bmptk/bmptk/stdlib -Ic:/bmptk/bmptk/bmptk/bmptk/targets/cortex/cmsis -Ic:/bmptk/bmptk/bmptk/bmptk/targets/cortex -Ic:/bmptk/bmptk/bmptk/bmptk/targets/cortex/cmsis/11xx/inc -DLANGUAGE_CPP -DBMPTK_EMBEDDED_HEAP -DBMPTK_TARGET=db103 -DBMPTK_TARGET_db103 -DBMPTK_CHIP=lpc1114fn28 -DBMPTK_CHIP_lpc1114fn28 -DBMPTK_XTAL=12000000 -DBMPTK_BAUDRATE=38400 -DBMPTK_VERSION=V02.00-work-in-progress-2013-11-11 -DBMPTK_TICKS_PER_US=6 -DBMPTK_GRAPHICS -Ic:/bmptk/bmptk/bmptk/bmptk -Werror -fno-rtti -fno-exceptions -std=c++11 -Wall -Wno-unused-local-typedefs -Wno-unused-function -fdata-sections -ffunction-sections -Os -c -o main.o main.cpp