public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mib.bugzilla at gmail dot com" <gcc-bugzilla@gcc.gnu.org> 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 [thread overview] Message-ID: <bug-54955-4@http.gcc.gnu.org/bugzilla/> (raw) 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
next reply other threads:[~2012-10-17 16:15 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-10-17 16:15 mib.bugzilla at gmail dot com [this message] 2012-10-17 16:22 ` [Bug c++/54955] " mib.bugzilla at gmail dot com 2012-10-17 17:22 ` [Bug web/54955] " redi at gcc dot gnu.org 2012-10-17 19:55 ` [Bug c++/54955] " daniel.kruegler at googlemail dot com 2012-10-17 20:53 ` paolo.carlini at oracle dot com 2012-10-26 13:28 ` dodji at gcc dot gnu.org 2012-10-26 13:31 ` paolo.carlini at oracle dot com 2012-10-26 17:42 ` dodji at seketeli dot org 2012-10-31 8:56 ` dodji at gcc dot gnu.org 2012-10-31 9:02 ` dodji at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-54955-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).