[LLVMbugs] [Bug 15102] New: problem with calling a destructor

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 28 20:37:48 PST 2013


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

             Bug #: 15102
           Summary: problem with calling a destructor
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rkotler at mips.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


The following is allowed in g++ but not clang++.


struct S {
  ~S() {};
  typedef S S1;
};


void foo() {
  S y;
  typedef S S2;
  y.S1::~S2();
}



rkotler at ubuntu-rkotler:~/testmips16/hf$  ~/llvm_3_2/install/bin/clang++ d1.cpp
-S
d1.cpp:10:10: error: expected the class name after '~' to name a destructor
  y.S1::~S2();
         ^
1 error generated.

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