[LLVMbugs] [Bug 9132] New: clang accepts declarators other than a literal 'auto' as the return type of a function with a trailing-return-type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 3 07:54:21 PST 2011


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

           Summary: clang accepts declarators other than a literal 'auto'
                    as the return type of a function with a
                    trailing-return-type
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: richard-llvm at metafoo.co.uk
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


clang accepts this:

  auto *f() -> int;

and declares f to have type "int*()".


clang crashes on this:

  auto *main() -> int;

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