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

--- Comment #11 from Mathieu Malaterre <malat at debian dot org> ---
(In reply to Kewen Lin from comment #6)
> Confirmed, thanks for reporting.
> 
> I noticed that the reduced test case in #c1 can make gcc-13 complain with:
> 
> test.cc:67:16: error: expected type-specifier before ‘__remove_reference’
>    67 |   using type = __remove_reference(_Tp);
>       |                ^~~~~~~~~~~~~~~~~~
> 
> Also gcc-12, gcc-11 build.
> 
> Is it expected? If yes, could we have a reduced test case to survive for
> gcc-12 and gcc-11 compilation? I think it would help bisection.

`__remove_reference` must be something new in g++-13.

Anyway I started a cvise regression using g++-11 against g++-12. You can try on
your side:

g++-11 -std=c++11 -o works -maltivec -mcpu=power8 -mstrict-align -g -O3
widen_mul_test.cc foo.cc -Wall -Wextra -Werror -Wfatal-errors

vs

g++-12 -std=c++11 -o fails -maltivec -mcpu=power8 -mstrict-align -g -O3
widen_mul_test.cc foo.cc -Wall -Wextra -Werror -Wfatal-errors

For some reason if I copy/paste foo.cc into the main cc file (gnu::noipa) I can
not reproduce the issue. So you'll have to download both *.cc files.

Thanks !

Reply via email to