This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67064] Register asm variable broken
- From: "daniel.gutson at tallertechnologies dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 30 Jul 2015 15:23:37 +0000
- Subject: [Bug c++/67064] Register asm variable broken
- Auto-submitted: auto-generated
- References: <bug-67064-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67064
Daniel Gutson <daniel.gutson at tallertechnologies dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.gutson@tallertechnol
| |ogies.com
--- Comment #5 from Daniel Gutson <daniel.gutson at tallertechnologies dot com> ---
FWIW, g++ 4.8.4 and clang 3.5 do not complain in the following code:
struct s {
int i;
};
//register struct s *reg __asm__( "1" );
s* reg;
int f(void)
{
int i;
i = reg->i;
i = (reg)->i;
return i;
}
As from the same paragraphs of the standard, I don't think that a adding
parenthesis should alter the "valueness type" outside a decltype, meaning that
this could be an error lately introduced. I'll ask for a Committee member help
here.