From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52004 invoked by alias); 30 Jul 2015 15:23:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 51968 invoked by uid 48); 30 Jul 2015 15:23:38 -0000 From: "daniel.gutson at tallertechnologies dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67064] Register asm variable broken Date: Thu, 30 Jul 2015 15:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel.gutson at tallertechnologies dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-07/txt/msg02647.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67064 Daniel Gutson changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.gutson@tallertechnol | |ogies.com --- Comment #5 from Daniel Gutson --- 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.