[Bug c++/69302] parentheses cause address of register variable to be requested
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jan 16 18:58:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69302
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at redhat dot com
Summary|Using bswap in template |parentheses cause address
|function with |of register variable to be
|-ftrack-macro-expansion=0 |requested
|results in a false compiler |
|error |
--- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
template <typename BLAH>
unsigned int foo()
{
register unsigned int __x = 0x00000FFF;
return (__x) & 0xff000000 ;
}
The parentheses are significant!
More information about the Gcc-bugs
mailing list