From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2580 invoked by alias); 17 Oct 2012 16:15:10 -0000 Received: (qmail 1994 invoked by uid 48); 17 Oct 2012 16:14:50 -0000 From: "mib.bugzilla at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/54955] New: alignas example in gcc 4.8 changes.html won't compile Date: Wed, 17 Oct 2012 16:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mib.bugzilla at gmail dot com 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: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-10/txt/msg01563.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54955 Bug #: 54955 Summary: alignas example in gcc 4.8 changes.html won't compile Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: mib.bugzilla@gmail.com gcc 4.8 changes.html file gives this example: alignas(double) int i; But the snapshot from Oct 14 2012 gives this message: g++ -c -std=c++11 alignas.cpp alignas.cpp:1:1: error: expected unqualified-id before 'alignas' alignas(double) int f; ^ If alignas is moved to the end of the declaration it compiles okay: int f alignas(double); doc error? Could you also confirm whether c++11 keyword alignas is the same as c1x _Alignas? Thanks and regards