This mailing list is for automated email from our Bugzilla bug
database, not for reporting bugs directly.
Please see https://gcc.gnu.org/bugs/ for instructions on how to report
bugs.
However, Andrew already explained why GCC is correct and this is not a
GCC bug. Just use DECLARE_SINGLETON(Receive
On Mon, Nov 27, 2023 at 8:24 PM Lew Robin via Gcc-bugs
wrote:
>
> This error happens when using macro and template.
> GCC Version: gcc version 12.3.0 (Ubuntu 12.3.0-1ubuntu1~22.04)
> OS: ubuntu 22.04 (x64)
> Compile Command:
> g++-12 ./testmacro.cc --std=c++20
>
> In fact, this error exisits from
This error happens when using macro and template.
GCC Version: gcc version 12.3.0 (Ubuntu 12.3.0-1ubuntu1~22.04)
OS: ubuntu 22.04 (x64)
Compile Command:
g++-12 ./testmacro.cc --std=c++20
In fact, this error exisits from g++11 to g++13. I also test it on clang and
msvc, but it cannot be reproduce