https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94034
Bug ID: 94034 Summary: Broken diagnostic: 'result_decl' not supported by dump_expr Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hstong at ca dot ibm.com Target Milestone: --- The following produces substitution text in an error message that is indicative of missing format-for-message handling. ### SOURCE (<stdin>): struct A { A *ap = this; }; constexpr A foo() { return {}; } void g() { constexpr A a = foo(); } ### COMPILER INVOCATION: g++ -fsyntax-only -xc++ - ### COMPILER OUTPUT: <stdin>: In function 'void g()': <stdin>:6:23: error: 'A{(&'result_decl' not supported by dump_expr<expression error>)}' is not a constant expression ### COMPILER VERSION INFO (g++ -v): Using built-in specs. COLLECT_GCC=/opt/wandbox/gcc-head/bin/g++ COLLECT_LTO_WRAPPER=/opt/wandbox/gcc-head/libexec/gcc/x86_64-pc-linux-gnu/10.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../source/configure --prefix=/opt/wandbox/gcc-head --enable-languages=c,c++ --disable-multilib --without-ppl --without-cloog-ppl --enable-checking=release --disable-nls --enable-lto LDFLAGS=-Wl,-rpath,/opt/wandbox/gcc-head/lib,-rpath,/opt/wandbox/gcc-head/lib64,-rpath,/opt/wandbox/gcc-head/lib32 Thread model: posix Supported LTO compression algorithms: zlib gcc version 10.0.1 20200302 (experimental) (GCC)