[Bug c++/102987] [9/10/11/12 Regression] Segfault when error or warning should trigger with combination.
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 15 01:00:41 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102987
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:6364a39907bd68624a30df0c8e380c40d2a646c4
commit r12-8172-g6364a39907bd68624a30df0c8e380c40d2a646c4
Author: Jason Merrill <jason@redhat.com>
Date: Thu Apr 14 17:35:35 2022 -0400
c++: using in diagnostics [PR102987]
The expression pretty-printing code crashed on a location wrapper with no
type, and didn't know what to do with a USING_DECL.
PR c++/102987
gcc/cp/ChangeLog:
* error.cc (dump_expr): Handle USING_DECL.
[VIEW_CONVERT_EXPR]: Just look through location wrapper.
gcc/testsuite/ChangeLog:
* g++.dg/diagnostic/using1.C: New test.
More information about the Gcc-bugs
mailing list