[LLVMbugs] [Bug 13773] New: incorrect mangling of pointer-to-__attribute__((noreturn))-function type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 5 16:09:20 PDT 2012


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

             Bug #: 13773
           Summary: incorrect mangling of
                    pointer-to-__attribute__((noreturn))-function type
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Consider this:

typedef __attribute__((noreturn)) void (*f)();
void g(f) {}

g++ mangles 'g' as _Z1gPVFvvE, clang mangles it as _Z1gPFvvE. Note the 'V'
(volatile), which is g++'s internal representation of
__attribute__((noreturn))!

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