[LLVMbugs] [Bug 2690] New: ICE on invalid; #pragma GCC visibility pop

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Aug 19 00:21:51 PDT 2008


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

           Summary: ICE on invalid; #pragma GCC visibility pop
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-g++
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1938)
 --> (http://llvm.org/bugs/attachment.cgi?id=1938)
testcase

I have a testcase which contains a single #pragma GCC visibility pop at the
end, and this causes an ICE in llvm-g++ that doesn't occur in my copy of GCC
4.2.

$ g++-4.2 421.c -O2
421.c:2: error: expected type-specifier before ‘ptrdiff_t’
421.c:2: error: expected ‘>’ before ‘ptrdiff_t’
421.c:7: error: expected unqualified-id before ‘}’ token
421.c:10: error: expected `}' at end of input
421.c:10: error: expected `}' at end of input
$ llvm-g++ 421.c -O2
421.c:2: error: expected type-specifier before ‘ptrdiff_t’
421.c:2: error: expected ‘>’ before ‘ptrdiff_t’
421.c:7: error: expected unqualified-id before ‘}’ token
421.c:10: error: expected `}' at end of input
421.c:10: internal compiler error: vector VEC(visibility,base) pop domain
error, in pop_visibility at c-pragma.c:637
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.

Attached testcase is delta-reduced.


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