https://llvm.org/bugs/show_bug.cgi?id=23343
Bug ID: 23343
Summary: const const double
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Testcase:
template <typename T> struct X {
typedef const T& const_reference;
};
void helper(const X<const double> x) {
decltype(x)::const_reference y = x;
}
$ clang b15959151.cc -std=c++11
b15959151.cc:5:32: error: no viable conversion from 'const X<const double>' to
'const const double'
decltype(x)::const_reference y = x;
^ ~
1 error generated.
We should never print "const const double".
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs