This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/60955] Erroneous warning about taking address of register with std=c++1y


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]