------- Comment #3 from jarrydb at cse dot unsw dot edu dot au 2010-02-11 12:17 ------- Here is my version: gcc version 4.5.0 20100206 (experimental) (GCC)
Command line: g++ -std=gnu++0x undeclared.cpp it only happens with the following source file, it doesn't happen when undeclared.i is compiled on its own. #include <string> void f() { auto y = { std::string(Equation()) } } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43028