http://llvm.org/bugs/show_bug.cgi?id=16992

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |[email protected]
         Resolution|FIXED                       |---

--- Comment #3 from [email protected] ---
The following test case should not fail, it seems the parse cuts off T from
expression T().

$ cat sizeof.cpp 


int ieq(int a, int b) {
    if (a == b)
        return 0;
    else return 1; 
}

int main(int argc, char *argv[])
{
    // where simple-type-specifier is type-name
        typedef int T;
        int i = T(1);
        i = T();
        return ieq(sizeof i, sizeof T());
}

$ clang++ -S -O2 -marm sizeof.cpp 
sizeof.cpp:15:30: error: expected parentheses around type name in sizeof
expression
                return ieq(sizeof i, sizeof T());
                                           ^
                                           (   )
1 error generated.

-- 
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

Reply via email to