This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69302] parentheses cause address of register variable to be requested
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 16 Jan 2016 18:58:03 +0000
- Subject: [Bug c++/69302] parentheses cause address of register variable to be requested
- Auto-submitted: auto-generated
- References: <bug-69302-4 at http dot gcc dot gnu dot org/bugzilla/>
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!