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 (regression)
- From: "dgregor at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2008 23:40:34 -0000
- Subject: [Bug c++/34219] gcc doesn't accept const members of variadic templates as const (regression)
- References: <bug-34219-15404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from dgregor at gcc dot gnu dot org 2008-01-28 23:40 -------
There are some problems with the example code. For example, the expression
max<T, Params> does not expand the parameter pack "Params". The compiler should
have warned you about this, both in this case and in the static_assert case.
--
dgregor at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|rejects-valid |error-recovery, ice-on-
| |invalid-code
Summary|gcc doesn't accept const |gcc doesn't accept const
|members of variadic |members of variadic
|templates as const |templates as const
| |(regression)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34219