[LLVMbugs] [Bug 15656] New: not substituting into some instantiation-dependent (but not type-dependent) expressions inside sizeof
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Apr 2 13:15:29 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15656
Bug ID: 15656
Summary: not substituting into some instantiation-dependent
(but not type-dependent) expressions inside sizeof
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
For instance:
template<typename T> void f(int a[sizeof(static_cast<int &>( T() ))]);
void g() { f<double[42]>(0); }
We should reject this (both the value-initialization and the cast are
ill-formed), but we apparently don't even instantiate inside the sizeof's
operand (perhaps because it's not type-dependent?).
--
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/20130402/8a45b884/attachment.html>
More information about the llvm-bugs
mailing list