https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83063
Aldy Hernandez <aldyh at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-12-08
CC| |aldyh at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Confirmed.
Started with r254707:
commit 86136db8efde2401b066fee95c546365b75dce2e
Author: tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Mon Nov 13 20:17:42 2017 +0000
Implement __VA_OPT__
This implements __VA_OPT__, a new preprocessor feature added in C++2A.
The paper can be found here:
Can even be reproduced with a simple ./cc1plus:
$ ./cc1plus.254707 ~/a.c -quiet
/home/cygnus/aldyh/a.c:2:1: internal compiler error: Segmentation fault
a ()
^
0x119f9eb crash_signal
../../gcc/toplev.c:325
0x1e2a1bf paste_all_tokens
../../libcpp/macro.c:889
0x1e2a1bf cpp_get_token_1
../../libcpp/macro.c:2636
0xb2b4d5 c_lex_with_flags(tree_node**, unsigned int*, unsigned char*, int)
../../gcc/c-family/c-lex.c:399
0x959121 cp_lexer_get_preprocessor_token
../../gcc/cp/parser.c:793
0x9b0141 cp_parser_initial_pragma
../../gcc/cp/parser.c:38613
0x958d91 cp_lexer_new_main
../../gcc/cp/parser.c:647
0x95cd0d cp_parser_new
../../gcc/cp/parser.c:3859
0x9b0bc3 c_parse_file()
../../gcc/cp/parser.c:39018
0xb3870a c_common_parse_file()
../../gcc/c-family/c-opts.c:1127
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.