Re: [C++ Patch] PR 84533 ("[7/8 Regression] ICE with duplicate enum value")

2018-02-26 Thread Jason Merrill
OK. On Mon, Feb 26, 2018 at 5:19 AM, Paolo Carlini wrote: > Hi, > > this ICE on invalid happens only in c++17 mode, when > redeclaration_error_message performs an additional check which only makes > sense for data members. Thus the fix is easy: avoid checking > DECL_DECLARED_CONSTEXPR_P on CONST_

[C++ Patch] PR 84533 ("[7/8 Regression] ICE with duplicate enum value")

2018-02-26 Thread Paolo Carlini
Hi, this ICE on invalid happens only in c++17 mode, when redeclaration_error_message performs an additional check which only makes sense for data members. Thus the fix is easy: avoid checking DECL_DECLARED_CONSTEXPR_P on CONST_DECLs. Tested x86_64-linux. Thanks, Paolo.