This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/34219] gcc doesn't accept const members of variadic templates as const (regression)



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]