https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69323
--- Comment #1 from Brian Davis <bd at jollyrogerlabs dot com> --- Created attachment 37380 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37380&action=edit Original source file Please note line 7 of this file: #define SHOW_GCC_BUG 1 If this line is commented out, the program compiles and runs normally on my machine; if it is left in, the compiler generates a segmentation fault as indicated in the bug description. There are two conditional groups in the code related to this macro which control inclusion of exactly two line of code: a friend declaration, and the declaration of a private section of a struct which is enclosed within a struct template. Perhaps of additional note is that the template parameter is non-type ("int" in this case).