Re: GCC 12.3 ICE: format(printf...) failing in C++ with virtual inheritance

2023-12-09 Thread Amol Surati via Gcc
On Sat, 9 Dec 2023 at 03:53, Paul Smith via Gcc wrote: > > I've tried this with both older versions as well as GCC 12.3 (latest I > have access to). This is on GNU/Linux on x86_64. > > > I have the following code: [...] > I'm assuming a bug should be filed for this ICE (can anyone repro it in > t

GCC 12.3 ICE: format(printf...) failing in C++ with virtual inheritance

2023-12-08 Thread Paul Smith via Gcc
I've tried this with both older versions as well as GCC 12.3 (latest I have access to). This is on GNU/Linux on x86_64. I have the following code: #include class Exception : public std::exception { public: Exception(const char* text, ...) __attribute__((format(printf, 2,