[LLVMbugs] [Bug 844] NEW: Internal compiler error with Objective-C++ and -fobjc-gc
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Jul 25 16:27:18 PDT 2006
http://llvm.org/bugs/show_bug.cgi?id=844
Summary: Internal compiler error with Objective-C++ and -fobjc-gc
Product: tools
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: llvm-g++
AssignedTo: unassignedbugs at nondot.org
ReportedBy: mark+llvm.org at bdash.net.nz
The following Objective-C++ file causes a reproducible internal compiler error when compiled with
llvm-gcc4 revision 17 from <svn://anonsvn.opensource.apple.com/svn/llvm/>. The error is only
generated when -fobjc-gc is passed to g++. This occurs even when llvm-gcc4 is built *without* LLVM
support enabled.
I initially filed this bug with Apple at <http://bugreporter.apple.com/> as <rdar://problem/4622335>,
but they asked that I file it over here.
test.mm
--
template<typename T> void foo(T v) { snprintf(v); }
--
Steps to Reproduce:
1. Put the snippet above in test.mm
2. /path/to/llvm-gcc/bin/g++ -c -o test-no-objc-gc.o test.mm
3. /path/to/llvm-gcc/bin/g++ -c -fobjc-gc -o test-objc-gc.o test.mm
Expected Results:
I expect test-no-objc-gc.o to be created in step 2, and test-objc-gc.o in step 3.
Actual Results:
test-no-objc-gc.o is created in step 2, but step 3 results in an internal compiler error:
test.mm: In function ‘void foo(T)’:
test.mm:1: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
Regression:
This does not occur with:
i686-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5341)
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list