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

           Summary: Clang can't codegen __func__ without implicit cast
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


$ cat t.c
void foo() {
  __func__;
}
$ clang t.c 
t.c:4:3: warning: expression result unused [-Wunused-value]
  __func__;
  ^~~~~~~~
t.c:4:3: error: cannot compile this aggregate expression yet
  __func__;
  ^~~~~~~~


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

Reply via email to