[LLVMbugs] [Bug 3270] Strange function declaration brings confusion to clang.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jan 8 21:58:58 PST 2009


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


Chris Lattner <clattner at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




--- Comment #2 from Chris Lattner <clattner at apple.com>  2009-01-08 23:58:57 ---
Seems fine to me, this compiles as expected:

struct u { int a; };
struct u f();
struct u *s, g();

void foo() { g(); }


The AST dump also looks right:


(CompoundStmt 0x2004a50 <bc.c:5:12, col:19>
  (CallExpr 0x2004a30 <col:14, col:16> 'struct u'
    (ImplicitCastExpr 0x2004a10 <col:14> 'struct u (*)()'
      (DeclRefExpr 0x20049d0 <col:14> 'struct u ()' FunctionDecl='g'
0x20048c0))))


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



More information about the llvm-bugs mailing list