public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "kretz at kde dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/56019] New: max_align_t should be in std namespace Date: Thu, 17 Jan 2013 12:59:00 -0000 [thread overview] Message-ID: <bug-56019-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56019 Bug #: 56019 Summary: max_align_t should be in std namespace Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: kretz@kde.org According to 3.11.2 in the C++11 standard max_align_t should be inside the std namespace (i.e. the text talks about use of alignof(std::max_align_t)). GCC only provides ::max_align_t, though: % cat main.cpp #include <cstddef> int main() { return alignof(std::max_align_t); } % /opt/gcc-4.7.2/bin/g++ -Wall -std=c++11 -o test main.cpp main.cpp: In function ‘int main()’: main.cpp:4:20: error: ‘max_align_t’ is not a member of ‘std’ main.cpp:4:20: note: suggested alternative: In file included from /home/.opt/gcc-4.7.2/bin/../lib/gcc/x86_64-suse-linux-gnu/4.7.2/../../../../include/c++/4.7.2/cstddef:44:0, from main.cpp:1: /home/.opt/gcc-4.7.2/bin/../lib/gcc/x86_64-suse-linux-gnu/4.7.2/include/stddef.h:426:3: note: ‘max_align_t’ % /opt/gcc-4.8-snapshot/bin/g++ -Wall -std=c++11 -o test main.cpp main.cpp: In function ‘int main()’: main.cpp:4:20: error: ‘max_align_t’ is not a member of ‘std’ return alignof(std::max_align_t); ^ main.cpp:4:20: note: suggested alternative: In file included from /home/.opt/gcc-4.8-snapshot/include/c++/4.8.0/cstddef:44:0, from main.cpp:1: /home/.opt/gcc-4.8-snapshot/lib/gcc/x86_64-suse-linux-gnu/4.8.0/include/stddef.h:425:3: note: ‘max_align_t’ } max_align_t; ^
next reply other threads:[~2013-01-17 12:59 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-01-17 12:59 kretz at kde dot org [this message] 2013-01-17 14:53 ` [Bug libstdc++/56019] " redi at gcc dot gnu.org 2013-06-11 9:17 ` paolo.carlini at oracle dot com 2013-06-11 9:54 ` paolo.carlini at oracle dot com 2014-04-22 21:28 ` Jobst.Ziebell at mailbox dot tu-dresden.de 2014-04-22 21:48 ` Jobst.Ziebell at mailbox dot tu-dresden.de 2014-04-23 13:03 ` redi 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-56019-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).