On Wed, Feb 12, 2025 at 12:07:53AM +0100, Jason Merrill wrote:
> Tested x86_64-pc-linux-gnu, applying to trunk.
> 
> -- 8< --
> 
> Since -frange-for-ext-temps has been causing trouble, let's not enable it
> by default in pre-C++23 GNU modes for GCC 15, and also allow disabling it in
> C++23 and up.

The reason for disallowing disabling it for C++23 and up has been feature
test macros, but admittedly that will be only a problem if/when C++26 or
C++29 etc. add another range for paper and bump __cpp_range_based_for
value again.  At that point unless that change is conditional on another flag
we'd need to require -frange-for-ext-temps to be on.  This can certainly
wait until that happens (if ever).

        Jakub

Reply via email to