http://llvm.org/bugs/show_bug.cgi?id=18035
Reid Kleckner <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Reid Kleckner <[email protected]> --- Fixed in r196402. Sebastian Redl pointed out that I need to fix C++11 list construction: $ cat t.cpp extern "C" int printf(const char *, ...); struct A { A(int, int) {} }; int f(int i) { printf("%d\n", i); return i; } int main() { A a{f(1), f(2)}; } This now prints 2, 1 with clang. MSVC 2013 CTP actually has the same behavior, so they are non-compliant. I think for the moment we have to be bugwards compatible. If they change, we can key our behavior off of -fmsc-version. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
