http://llvm.org/bugs/show_bug.cgi?id=14894
Giulio Eulisse <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #2 from Giulio Eulisse <[email protected]> 2013-01-10 12:33:12 CST --- What you did works fine for me as well, but it's not what I proposed to reproduce my issue. The following: cat << \EOF > foo.cc #ifdef __SSE3__ void bar(); #endif void foo() { bar(); } EOF c++-analyzer -msse3 -c foo.cc can be cut & pasted to reproduce the issue 100% of the times for me. Notice I do provide the -msse3 option. Notice that neither of: clang++ -msse3 -c foo.cc does not reproduce the issue. Notice that: `c++-analyzer -E -dM -msse3 -c foo.cc | grep SSE` gives: #define __SSE2_MATH__ 1 #define __SSE2__ 1 #define __SSE__ 1 #define __SSE_MATH__ 1 #define __SSE3__ 1 foo.cc:8:3: error: use of undeclared identifier 'bar' bar(); ^ 1 error generated. so __SSE3__ is defined, but still the ifdef fails. -- 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
