This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34219] gcc doesn't accept const members of variadic templates as const
- From: "rbuergel at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jan 2008 22:38:23 -0000
- Subject: [Bug c++/34219] gcc doesn't accept const members of variadic templates as const
- References: <bug-34219-15404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rbuergel at web dot de 2008-01-19 22:38 -------
another testcase:
template<template<typename... T> class Comp, typename... T> void f( T... Value)
{
static_assert( Comp<T>::value > 0, "" );
}
template <typename... T>
struct Foo
{
static const int value=1;
};
int main()
{
f<Foo>( 2 );
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34219