From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24073 invoked by alias); 25 Mar 2013 11:11:59 -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 24025 invoked by uid 48); 25 Mar 2013 11:11:53 -0000 From: "goswin-v-b at web dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56715] Explicit Reg Vars are being ignored for consts when using g++ Date: Mon, 25 Mar 2013 11:11: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: goswin-v-b at web dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Resolution Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-03/txt/msg01754.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56715 Goswin von Brederlow changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID | --- Comment #5 from Goswin von Brederlow 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.