[llvm-bugs] [Bug 37921] New: Ill-formed code?
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jun 24 23:58:52 PDT 2018
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: unassignedclangbugs at nondot.org
Reporter: zhonghao at pku.org.cn
CC: dgregor at apple.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180625/0729bc7e/attachment.html>
More information about the llvm-bugs
mailing list