[llvm-bugs] [Bug 41228] New: nested template issue
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Mar 25 17:41:28 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41228
Bug ID: 41228
Summary: nested template issue
Product: clang
Version: 8.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: ankur.dedev at tuta.io
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
The code below fails to compile in Clang 8.0.0, the following Stack Overflow
answers https://stackoverflow.com/a/55334872/9363849 suggests that it might not
be the intended behavior.
template<typename FOO>
struct Foo
{
using Value = int;
template<Value VALUE>
struct Bar;
};
template<typename FOO>
template<typename Foo<FOO>::Value VALUE>
struct Foo<FOO>::Bar { static void test(); };
template<typename FOO>
template<typename Foo<FOO>::Value VALUE>
void Foo<FOO>::Bar<VALUE>::test() {}
int main() { return 0; }
--
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/20190326/ed63b78f/attachment.html>
More information about the llvm-bugs
mailing list