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++/63889] [5 Regression] Ice with redundant static in class scope constexpr variable template.


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.


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