[LLVMbugs] [Bug 128] NEW: [llvmg++] Cannot use pointer to member to initialize global

bugzilla-daemon at zion.cs.uiuc.edu bugzilla-daemon at zion.cs.uiuc.edu
Tue Nov 18 12:10:43 PST 2003


           Summary: [llvmg++] Cannot use pointer to member to initialize
           Product: tools
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-g++
        AssignedTo: sabre at nondot.org
        ReportedBy: sabre at nondot.org

This testcase:

struct Gfx {
  void opMoveSetShowText();

struct Operator {
  void (Gfx::*func)();

Operator opTab[] = {

Inspires this lovely evocation from llvmg++:

$ llvmg++ tmp2.cc -c
ERROR: In function llvm_expand_constant_expr:4471, tree not handled by LLVM yet!
 <ptrmem_cst 0x40262280
    type <record_type 0x40261310 DI
        size <integer_cst 0x4001b618 constant 64>
        unit size <integer_cst 0x4001b99c constant 8>
        align 32 symtab 0 alias set -1
        fields <field_decl 0x40261460 __pfn type <pointer_type 0x402612a0>
            unsigned SI file tmp2.cc line 6
            size <integer_cst 0x4001b9b0 constant 32>
            unit size <integer_cst 0x4001b9d8 constant 4>
            align 32 offset_align 32
            offset <integer_cst 0x4001ba64 constant 0>
            bit offset <integer_cst 0x4001bb04 constant 0> context <record_type
0x40261310> arguments <integer_cst 0x4001ba64 0> chain <field_decl 0x402614d0
        ptrmemfunc fn type <pointer_type 0x402612a0 type <method_type 0x4025df50>
            unsigned SI size <integer_cst 0x4001b9b0 32> unit size <integer_cst
0x4001b9d8 4>
            align 32 symtab 0 alias set -1>
        pointer_to_this <pointer_type 0x402613f0> chain <type_decl 0x40261540
tmp2.cc:11: internal compiler error: in llvm_expand_constant_expr, at
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.cs.uiuc.edu> for instructions.

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