|
|
Message-ID: <50D0080D.6020005@ojab.ru>
Date: Tue, 18 Dec 2012 10:07:09 +0400
From: ojab <ojab@...b.ru>
To: musl@...ts.openwall.com
Subject: Re: spandsp build, lrint/sqrt/pow issue
On 16.12.2012 18:12, Szabolcs Nagy wrote:
> * ojab<ojab@...b.ru> [2012-12-16 14:29:00 +0400]:
>
> i think it's a gcc and clang bug if
>
> __typeof__(0 ? (int*)0 : (void*)1)
>
> is not a valid type expression, it should work just like
>
> sizeof(0 ? (int*)0 : (void*)1)
>
> which is a valid expression in iso c
> (typeof is not defined by any standard but it should not
> evaluate its argument like sizeof)
>
LLVM guys has closed http://llvm.org/bugs/show_bug.cgi?id=14618 as invalid.
Type expression, that mentioned above, compiles without errors on both
gcc and clang, so looks like an error anywhere else. Testcase was:
int main() {
__typeof__(0 ? (int*)0 : (void*)1) x;
}
//wbr ojab
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.