https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791
Paolo Carlini changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791
--- Comment #9 from Ville Voutilainen ---
I can't see any warnings with my trunk build from today, either.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791
--- Comment #8 from Paolo Carlini ---
Weird, I tried on my machine yesterday's r220267 and same result, no warning
(with -std=gnu++1z -Wall -Wextra). I guess that before closing this bug we need
either to figure out what's special about that web
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791
--- Comment #7 from Paolo Carlini ---
I know that web page, but today, 20150131, I can't reproduce the issue with the
current tree on my machine.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791
--- Comment #6 from Ville Voutilainen ---
I ran it with this thing:
http://melpon.org/wandbox/permlink/gAsh89NaSSFspYjq
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791
--- Comment #5 from Paolo Carlini ---
Hi ville. With r220303 I don't see the warning, at any optimization level and
various combinations of other flags + -Wunused-but-set-variable of course. Can
you please double check / provide more information?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791
--- Comment #4 from Ville Voutilainen ---
Oh, wait a minute, with trunk, I see an incorrect warning:
prog.cc: In function 'int main()':
prog.cc:7:15: warning: variable 'a' set but not used
[-Wunused-but-set-variable]
const int a = 2;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791
Ville Voutilainen changed:
What|Removed |Added
Keywords||rejects-valid
Status|UNC
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791
--- Comment #2 from Tomalak Geret'kal ---
Actually, I'm no longer sure that `a` *is* odr-used...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791
--- Comment #1 from Tomalak Geret'kal ---
Build error:
/
main.cpp: In instantiation of 'main():: [with auto:1 = int]':
/usr/local/include/c++/4.9.2/functional:2149:71: required by substitution of
'template template
10 matches
Mail list logo