------- Comment #1 from redi at gcc dot gnu dot org 2010-09-09 23:51 -------
I agree the lookup in get_value should find the template parameter, not
Outer::value.
Here's a variation that should not compile, because &value should be invalid
struct Outer
{
static const int value = 1 ;
template< int value >
struct Inner
{
static const int* get_value() { return &value ; }
} ;
} ;
template class Outer::Inner<2>;
--
redi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-09-09 23:51:26
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45625