[cfe-dev] Crash with complex integer promotion

Eli Friedman eli.friedman at gmail.com
Sat Jan 12 08:31:51 PST 2008


void a() {
__complex__ int arr;
__complex__ short brr;
arr*brr;
}

Crashes clang -fsyntax-only.  Looks like
Sema::UsualArithmeticConversions isn't expecting integral complex
numbers.  (Obviously a GCC extension, but since clang supports it, it
should work.)

-Eli



More information about the cfe-dev mailing list