https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64433
Bug ID: 64433 Summary: Segmentation fault while compiling Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: aleksis at mikrotik dot com This code causes segmentation fault while compiling. #include <cstddef> template<int Num> class N { static constexpr int num = Num; }; template<class T> using NDef = N<offsetof(T, T::m)>; template<class T> using TDef = NDef<T>; GCC version: 4.9.2 compiled with: g++ --std=c++11 -c test.cpp system: Linux 3.18.1-1-ARCH #1 SMP PREEMPT Wed Dec 17 15:40:09 CET 2014 x86_64 GNU/Linux