public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bernhard dot merkle at googlemail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/40687] New: [C++0x]: error with auto and 7.1.6.4/7 in N2914 Date: Wed, 08 Jul 2009 20:06:00 -0000 [thread overview] Message-ID: <bug-40687-17925@http.gcc.gnu.org/bugzilla/> (raw) Hi, I think there is a bug in g++ 4.4 concerning the implementation of auto. 7.1.6.4/7 in N2914 The following program compiles, but it should be rejected by g++. int main() { auto i = 10, d = 5.0; // error! shall not compile in C++0x return 0; } $ /opt/gcc-4.4/bin/g++ -v Using built-in specs. Target: i686-pc-cygwin Configured with: ./configure --prefix=/opt/gcc-4.4 Thread model: single gcc version 4.4.0 (GCC) $ /opt/gcc-4.4/bin/g++ --std=c++0x -Wall g++4.4BugAutoN2914.cpp g++4.4BugAutoN2914.cpp: In function 'int main()': g++4.4BugAutoN2914.cpp:4: warning: unused variable 'i' g++4.4BugAutoN2914.cpp:4: warning: unused variable 'd' -- Summary: [C++0x]: error with auto and 7.1.6.4/7 in N2914 Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bernhard dot merkle at googlemail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40687
next reply other threads:[~2009-07-08 20:06 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-07-08 20:06 bernhard dot merkle at googlemail dot com [this message] 2009-07-08 20:07 ` [Bug c++/40687] " bernhard dot merkle at googlemail dot com 2009-07-09 0:35 ` paolo dot carlini at oracle dot com 2009-07-14 18:50 ` jason at gcc dot gnu dot org 2009-11-03 16:08 ` jason at gcc dot gnu dot org 2009-11-03 17:11 ` jason at gcc dot gnu dot org 2009-11-03 18:50 ` jason at gcc dot gnu dot 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-40687-17925@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).