This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55992] constexpr static member function not recognised in templated using statement
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 15 Mar 2016 03:23:36 +0000
- Subject: [Bug c++/55992] constexpr static member function not recognised in templated using statement
- Auto-submitted: auto-generated
- References: <bug-55992-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55992
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2013-01-15 00:00:00 |2016-3-14
CC| |msebor at gcc dot gnu.org
Known to fail| |4.9.3, 5.1.0, 6.0
--- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> ---
Reconfirmed with today's top of trunk of 6.0 and with all prior supported
versions. Below is an ever-so-slightly simpler test case:
$ cat v.c && /home/msebor/build/gcc-trunk-svn/gcc/xgcc
-B/home/msebor/build/gcc-trunk-svn/gcc -S -Wall -Wextra -Wpedantic -xc++ v.c
template <int> struct A { };
template <int I>
struct B
{
static constexpr int f (int i) { return i; }
template <int J>
using C = A<f (J)>; // error
C<I> c;
};
v.c: In substitution of âtemplate<int I> template<int J> using C = A<f(J)>
[with int J = I; int I = I]â:
v.c:11:6: required from here
v.c:9:17: error: âfâ was not declared in this scope
using C = A<f (J)>; // error
~~^~~