https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72801
--- Comment #2 from Zhendong Su <su at cs dot ucdavis.edu> ---
(In reply to Martin Sebor from comment #1)
> I can confirm the ICE but not the regression part. My bisection script
> shows an ICE goes all the way back to 4.3.0. The first revision I have
> access to that crashes is r128126.
Martin, below is what I see:
$ g++-6.1 -c -std=c++11 small.cpp
small.cpp:17:23: error: specializing member ‘B<>::C<int()>::a’ requires
‘template<>’ syntax
template <> const int B <>::template C < int () >::a;
^~~~
$ g++-5.4 -c -std=c++11 small.cpp
small.cpp:17:23: error: specializing member ‘B<>::C<int()>::a’ requires
‘template<>’ syntax
template <> const int B <>::template C < int () >::a;
^
$ g++-4.9 -c -std=c++11 small.cpp
small.cpp:17:23: error: specializing member ‘B<>::C<int()>::a’ requires
‘template<>’ syntax
template <> const int B <>::template C < int () >::a;
^
$