https://bugs.llvm.org/show_bug.cgi?id=37921

            Bug ID: 37921
           Summary: Ill-formed code?
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: zhong...@pku.org.cn
                CC: dgre...@apple.com, llvm-bugs@lists.llvm.org

The code is as follow:

template<typename eT> class Mat;
template<typename eT> class Col : public Mat<eT> {
 using Mat<eT>::operator();
 using Col<eT>::operator();
 void operator() ();
};

clang++ accepts it, but g++ rejects it:
error: type 'Col<eT>' is not a base type for type 'Col<eT>'
  using Col<eT>::operator();
                          ^
This code looks ill-formed, right?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to