This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/63889] [5 Regression] Ice with redundant static in class scope constexpr variable template.
- From: "ktietz at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Dec 2014 14:49:59 +0000
- Subject: [Bug c++/63889] [5 Regression] Ice with redundant static in class scope constexpr variable template.
- Auto-submitted: auto-generated
- References: <bug-63889-4 at http dot gcc dot gnu dot org/bugzilla/>
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.