This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71797] Spurious unused-variable warning with inline function and unrelated error
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 24 Aug 2017 20:14:02 +0000
- Subject: [Bug c++/71797] Spurious unused-variable warning with inline function and unrelated error
- Auto-submitted: auto-generated
- References: <bug-71797-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71797
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |RESOLVED
CC| |egallager at gcc dot gnu.org
Resolution|--- |WORKSFORME
--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
I can't reproduce this bug; only the error is printed, with no warning for me:
$ /usr/local/bin/g++ -c -Wall -Wunused-const-variable=2 -Wextra -pedantic
71797.cc
71797.cc: In constructor ‘Foo::Foo()’:
71797.cc:8:13: error: ‘create_a_compile_error’ was not declared in this scope
Foo() { create_a_compile_error; };
^~~~~~~~~~~~~~~~~~~~~~
$