https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88110

            Bug ID: 88110
           Summary: [9 Regression] ICE (segfault) with -std=C++2a with
                    cxx_eval_constant_expression
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
  Target Milestone: ---

Created attachment 45041
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45041&action=edit
Test csae, compile with "g++ -std=c++2a" works with "-std=c++17"

Compiling the attached program with "g++ -std=c++17" works, but with "g++
-std=c++2a" it segfaults.

It compiles with g++ 8.2.1 20181120 (and "-std=c++2a").


input17.ii:14:32: internal compiler error: Segmentation fault
   14 |   if (command->is_error_layer()) ;
      |                                ^
0xf0e25f crash_signal
        ../../gcc/toplev.c:326
0x88f320 tree_check(tree_node*, char const*, int, char const*, tree_code)
        ../../gcc/tree.h:3153
0x88f320 cxx_eval_constant_expression
        ../../gcc/cp/constexpr.c:4834

Reply via email to