[llvm-bugs] [Bug 47587] New: Unexpected name lookup success in specialization of tempalte class with variadic number of base classes
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Sep 19 11:26:17 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47587
Bug ID: 47587
Summary: Unexpected name lookup success in specialization of
tempalte class with variadic number of base classes
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++17
Assignee: unassignedclangbugs at nondot.org
Reporter: anders.granlund.0 at gmail.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
Consider the following c++ program:
#include <iostream>
class A
{
protected:
static constexpr int x = 123;
};
template<typename T>
using B = A;
template<typename ...T>
class C : B<T> ...
{
public:
static int f()
{
return x;
}
};
int main()
{
std::cout << C<>::f() << std::endl;
}
The name-lookup of x the method f should fail for the specialization C<> of the
template class C, but it does not when compiling with "-std=c++17
-pedantic-errors" (no compilation errros are outputed).
--
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/20200919/c97f7885/attachment-0001.html>
More information about the llvm-bugs
mailing list