[LLVMbugs] [Bug 9225] New: Cannot compile code

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 15 08:21:33 PST 2011


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

           Summary: Cannot compile code
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: grzegorz.dabrowski at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Following code is accepted by clang 2.8 and gcc-4.4, but rejected by clang
trunk (r125563).

$ cat template.cpp 
template<typename Definition>
class AVLTree  {
public:
    class ConstIterator;

    class Iterator  {
    public:
        void Remove()
        {
            ConstIterator::fTreeIterator.Remove();
        }
    };
};


$ clang++ template.cpp -c
template.cpp:10:19: error: no member named 'fTreeIterator' in
'AVLTree::ConstIterator'
                        ConstIterator::fTreeIterator.Remove();
                        ~~~~~~~~~~~~~~~^
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