[LLVMbugs] [Bug 12669] Constant expressions in constant context not evaluated as such
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Apr 25 19:13:19 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12669
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution| |INVALID
--- Comment #2 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-04-25 21:13:19 CDT ---
foo<1,2,3,4,5,6,7,8,9,10>::contains is odr-used by this program, and odr-uses
foo<1,2,3,4,5,6,7,8,9,10>::values, which has no definition, so the program is
ill-formed. Add a definition of 'values' to make your code valid:
template<int... Values> constexpr int
foo<Values...>::values[sizeof...(Values)];
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list