[Bug c++/90243] diagnostic notes that belong to a suppressed error about an uninitialized variable in a constexpr function are still shown
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 26 16:33:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90243
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri Apr 26 16:33:02 2019
New Revision: 270610
URL: https://gcc.gnu.org/viewcvs?rev=270610&root=gcc&view=rev
Log:
PR c++/90243 - orphaned note in uninstantiated constexpr function
gcc/cp:
PR c++/90243 - orphaned note in uninstantiated constexpr function
* decl.c (check_for_uninitialized_const_var): Suppress notes if no
error was shown.
gcc/testsuite:
PR c++/90243
* g++.dg/diagnostic/pr90243.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/diagnostic/pr90243.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list