[llvm-bugs] [Bug 50590] New: Assertion `!A->getDeducedType().isNull() && "cannot request the size of an undeduced or dependent auto type"' failed
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Jun 5 14:00:19 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50590
Bug ID: 50590
Summary: Assertion `!A->getDeducedType().isNull() && "cannot
request the size of an undeduced or dependent auto
type"' failed
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: sguelton at redhat.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
This may be a duplicate of existing bugs, but the reproducer is super simple,
so I'm keeping track of it here
```
template <typename>
struct pack {
template <typename T>
// OK : constexpr static bool some_boolean_cx_value = true;
constexpr static auto some_boolean_cx_value = true;
};
void usage() {
pack<char>::some_boolean_cx_value<int>;
}
```
Interestingly, the bug got introduced between clang 8 and clang 9
--
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/20210605/181b4524/attachment.html>
More information about the llvm-bugs
mailing list