This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60955] Erroneous warning about taking address of register with std=c++1y
- From: "matt at godbolt dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 24 Apr 2014 19:36:23 +0000
- Subject: [Bug c++/60955] Erroneous warning about taking address of register with std=c++1y
- Auto-submitted: auto-generated
- References: <bug-60955-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60955
--- Comment #1 from Matt Godbolt <matt at godbolt dot org> ---
The previous snippet wasn't quite as minimal as it could be. This single line
also reproduces it:
unsigned int erroneous_warning(register int a) { return (a); }
Jonathan Wakely mentioned this may be related to this bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57573