[Bug c++/56715] Explicit Reg Vars are being ignored for consts when using g++
goswin-v-b at web dot de
gcc-bugzilla@gcc.gnu.org
Mon Mar 25 11:11:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56715
Goswin von Brederlow <goswin-v-b at web dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
--- Comment #5 from Goswin von Brederlow <goswin-v-b at web dot de> 2013-03-25 11:11:52 UTC ---
If it is invalid, as in not allowed, then I would expect an error. If it is
undefined behaviour then I would expect a warning.
For example:
register const int r4 asm("r4") = 0x1000;
Warning: const expression wont be bound to a specific register.
More information about the Gcc-bugs
mailing list