[Bug c++/63889] [5 Regression] Ice with redundant static in class scope constexpr variable template.

ktietz at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 18 14:50:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63889

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktietz at gcc dot gnu.org

--- Comment #4 from Kai Tietz <ktietz at gcc dot gnu.org> ---
Issue is that we don't check for static function for template-parameter-count. 
So for this sample tmpl has 2 arguments, but in fact it has just 1.
Not sure where we add this additional argument. We see for the template-decl
'template <class T> template <class>' ...
By allowing args being less then expected template arguments, issue is fixed. 
But in fact we should check template-params - (is_static ? 1 : 0) ... or
something like this.



More information about the Gcc-bugs mailing list