http://llvm.org/bugs/show_bug.cgi?id=10866
Nick Lewycky <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution| |INVALID --- Comment #1 from Nick Lewycky <[email protected]> 2011-09-05 19:31:31 CDT --- If I'm not mistaken, your testcase boils down to: static const int test1 = bar(); static const double test2 = test1 * 0.5; What's the guarantee that either of those is evaluated first? I realize that reordering them doesn't make the bug go away, but as I just said, there's no guarantee that it would. Further, I just tried it with G++ 4.6.1 on my machine: $ g++ example.cpp -o example $ ./example inf I'm going to close this bug as invalid. If you think I'm mistaken, please reopen it! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- 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
