public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/40687] New: [C++0x]: error with auto and 7.1.6.4/7 in N2914 @ 2009-07-08 20:06 bernhard dot merkle at googlemail dot com 2009-07-08 20:07 ` [Bug c++/40687] " bernhard dot merkle at googlemail dot com ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: bernhard dot merkle at googlemail dot com @ 2009-07-08 20:06 UTC (permalink / raw) To: gcc-bugs 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/40687] [C++0x]: error with auto and 7.1.6.4/7 in N2914 2009-07-08 20:06 [Bug c++/40687] New: [C++0x]: error with auto and 7.1.6.4/7 in N2914 bernhard dot merkle at googlemail dot com @ 2009-07-08 20:07 ` bernhard dot merkle at googlemail dot com 2009-07-09 0:35 ` paolo dot carlini at oracle dot com ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: bernhard dot merkle at googlemail dot com @ 2009-07-08 20:07 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from bernhard dot merkle at googlemail dot com 2009-07-08 20:07 ------- Created an attachment (id=18162) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18162&action=view) program which should not compile -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40687 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/40687] [C++0x]: error with auto and 7.1.6.4/7 in N2914 2009-07-08 20:06 [Bug c++/40687] New: [C++0x]: error with auto and 7.1.6.4/7 in N2914 bernhard dot merkle at googlemail dot com 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 ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: paolo dot carlini at oracle dot com @ 2009-07-09 0:35 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from paolo dot carlini at oracle dot com 2009-07-09 00:35 ------- To be sure, let's CC Jason about these auto issues... -- paolo dot carlini at oracle dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40687 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/40687] [C++0x]: error with auto and 7.1.6.4/7 in N2914 2009-07-08 20:06 [Bug c++/40687] New: [C++0x]: error with auto and 7.1.6.4/7 in N2914 bernhard dot merkle at googlemail dot com 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 ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: jason at gcc dot gnu dot org @ 2009-07-14 18:50 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from jason at gcc dot gnu dot org 2009-07-14 18:50 ------- Yeah, that's a known issue; it's XFAILed in one of the auto tests. -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-07-14 18:50:44 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40687 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/40687] [C++0x]: error with auto and 7.1.6.4/7 in N2914 2009-07-08 20:06 [Bug c++/40687] New: [C++0x]: error with auto and 7.1.6.4/7 in N2914 bernhard dot merkle at googlemail dot com ` (2 preceding siblings ...) 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 5 siblings, 0 replies; 7+ messages in thread From: jason at gcc dot gnu dot org @ 2009-11-03 16:08 UTC (permalink / raw) To: gcc-bugs -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED Last reconfirmed|2009-07-14 18:50:44 |2009-11-03 16:08:23 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40687 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/40687] [C++0x]: error with auto and 7.1.6.4/7 in N2914 2009-07-08 20:06 [Bug c++/40687] New: [C++0x]: error with auto and 7.1.6.4/7 in N2914 bernhard dot merkle at googlemail dot com ` (3 preceding siblings ...) 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 5 siblings, 0 replies; 7+ messages in thread From: jason at gcc dot gnu dot org @ 2009-11-03 17:11 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from jason at gcc dot gnu dot org 2009-11-03 17:11 ------- Subject: Bug 40687 Author: jason Date: Tue Nov 3 17:11:08 2009 New Revision: 153855 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153855 Log: PR c++/40687 * pt.c (do_auto_deduction): Diagnose inconsistent deduction. Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/cpp0x/auto3.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40687 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/40687] [C++0x]: error with auto and 7.1.6.4/7 in N2914 2009-07-08 20:06 [Bug c++/40687] New: [C++0x]: error with auto and 7.1.6.4/7 in N2914 bernhard dot merkle at googlemail dot com ` (4 preceding siblings ...) 2009-11-03 17:11 ` jason at gcc dot gnu dot org @ 2009-11-03 18:50 ` jason at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: jason at gcc dot gnu dot org @ 2009-11-03 18:50 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from jason at gcc dot gnu dot org 2009-11-03 18:49 ------- Fixed for 4.5. -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40687 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-11-03 18:50 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-07-08 20:06 [Bug c++/40687] New: [C++0x]: error with auto and 7.1.6.4/7 in N2914 bernhard dot merkle at googlemail dot com 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
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).