public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/40688] New: [C++0x]: error with auto direct and copy initalization @ 2009-07-08 20:16 bernhard dot merkle at googlemail dot com 2009-07-08 20:17 ` [Bug c++/40688] " bernhard dot merkle at googlemail dot com ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: bernhard dot merkle at googlemail dot com @ 2009-07-08 20:16 UTC (permalink / raw) To: gcc-bugs Hi, I think there is another bug in g++ 4.4 concerning the implementation of auto with direct and copy initialization 7.1.6.4/3 in N2914 The following program should compile, but is rejected by g++. int main() { auto v1 = 1; // copy initialization syntax auto v2(2); // direct initialization syntax 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.4Bug2AutoN2914.cpp g++4.4Bug2AutoN2914.cpp: In function 'int main()': g++4.4Bug2AutoN2914.cpp:5: error: 'v2' has incomplete type g++4.4Bug2AutoN2914.cpp:4: warning: unused variable 'v1' g++4.4Bug2AutoN2914.cpp:5: warning: unused variable 'v2' -- Summary: [C++0x]: error with auto direct and copy initalization 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=40688 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/40688] [C++0x]: error with auto direct and copy initalization 2009-07-08 20:16 [Bug c++/40688] New: [C++0x]: error with auto direct and copy initalization bernhard dot merkle at googlemail dot com @ 2009-07-08 20:17 ` bernhard dot merkle at googlemail dot com 2009-07-09 0:36 ` paolo dot carlini at oracle dot com 2009-07-09 17:15 ` jason at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: bernhard dot merkle at googlemail dot com @ 2009-07-08 20:17 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from bernhard dot merkle at googlemail dot com 2009-07-08 20:16 ------- Created an attachment (id=18163) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18163&action=view) program which should compile -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40688 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/40688] [C++0x]: error with auto direct and copy initalization 2009-07-08 20:16 [Bug c++/40688] New: [C++0x]: error with auto direct and copy initalization bernhard dot merkle at googlemail dot com 2009-07-08 20:17 ` [Bug c++/40688] " bernhard dot merkle at googlemail dot com @ 2009-07-09 0:36 ` paolo dot carlini at oracle dot com 2009-07-09 17:15 ` jason at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: paolo dot carlini at oracle dot com @ 2009-07-09 0:36 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=40688 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/40688] [C++0x]: error with auto direct and copy initalization 2009-07-08 20:16 [Bug c++/40688] New: [C++0x]: error with auto direct and copy initalization bernhard dot merkle at googlemail dot com 2009-07-08 20:17 ` [Bug c++/40688] " bernhard dot merkle at googlemail dot com 2009-07-09 0:36 ` paolo dot carlini at oracle dot com @ 2009-07-09 17:15 ` jason at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: jason at gcc dot gnu dot org @ 2009-07-09 17:15 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from jason at gcc dot gnu dot org 2009-07-09 17:15 ------- Already fixed for 4.4.1. -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40688 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-07-09 17:15 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-07-08 20:16 [Bug c++/40688] New: [C++0x]: error with auto direct and copy initalization bernhard dot merkle at googlemail dot com 2009-07-08 20:17 ` [Bug c++/40688] " bernhard dot merkle at googlemail dot com 2009-07-09 0:36 ` paolo dot carlini at oracle dot com 2009-07-09 17:15 ` 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).