Re: [PATCH] c++: Fix ICE on constexpr virtual function [PR117317]

2024-11-07 Thread Jason Merrill
On 10/30/24 3:17 AM, Jakub Jelinek wrote: Hi! Since C++20 virtual methods can be constexpr, and if they are constexpr evaluated, we choose tentative_decl_linkage for those defer their output and decide at_eof again. On the following testcases we ICE though, because if expand_or_defer_fn_1 decide

[PATCH] c++: Fix ICE on constexpr virtual function [PR117317]

2024-10-30 Thread Jakub Jelinek
Hi! Since C++20 virtual methods can be constexpr, and if they are constexpr evaluated, we choose tentative_decl_linkage for those defer their output and decide at_eof again. On the following testcases we ICE though, because if expand_or_defer_fn_1 decides to use tentative_decl_linkage, it returns