[LLVMbugs] [Bug 8474] New: #pragma weak recursion crashes clang

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 27 03:55:44 PDT 2010


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

           Summary: #pragma weak recursion crashes clang
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: kwm at FreeBSD.org
                CC: llvmbugs at cs.uiuc.edu


> cat sha2.c
void a(int b)
{
#pragma weak c = a
  c(b);
}

> clang sha2.c
Stack dump:
0.    Program arguments: /usr/bin/clang -cc1 -triple
i386-undermydesk-freebsd9.0 -S -disable-free -main-file-name sha2.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu
i486 -resource-dir /usr/lib/clang/2.8 -ferror-limit 19 -fmessage-length 80
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-Upr8xa.s
-x c sha2.c 
1.    sha2.c:4:6: current parser token ')'
2.    sha2.c:2:1: parsing function body 'a'
3.    sha2.c:2:1: in compound statement ('{}')
clang: error: clang frontend command failed due to signal 11 (use -v to see
invocation)

> clang -v
clang version 2.9 (trunk 117360)
Target: i386-unknown-freebsd9.0
Thread model: posix

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