https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107864
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- /path/to/mycodedistr/include/mycode/grfx/_cpu/../color/../../_stdafx/_math.hpp:111:23: internal compiler error: Segmentation fault 0x120e72f crash_signal /home/apinski/src/upstream-gcc/gcc/gcc/toplev.cc:314 0xc5c9b2 check_return_expr(tree_node*, bool*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/typeck.cc:11062 0xc07eee finish_return_stmt(tree_node*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/semantics.cc:1229 0xbca0db tsubst_expr(tree_node*, tree_node*, int, tree_node*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:18580 0xbc9931 tsubst_expr(tree_node*, tree_node*, int, tree_node*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:18932 0xbd4295 tsubst_expr(tree_node*, tree_node*, int, tree_node*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:18556 0xbd4295 instantiate_body /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:26484 0xbd52ba instantiate_decl(tree_node*, bool, bool) /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:26774 0xbf2b2b instantiate_pending_templates(int) /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:26852 0xaaa7fb c_parse_final_cleanups() /home/apinski/src/upstream-gcc/gcc/gcc/cp/decl2.cc:4940 0xcd38b0 c_common_parse_file() /home/apinski/src/upstream-gcc/gcc/gcc/c-family/c-opts.cc:1266 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. Let me try to reduce it.