[Bug c++/43368] [4.3/4.4/4.5 Regression] different access to templated structure static field give different results

redi at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Mar 15 10:32:00 GMT 2010



------- Comment #2 from redi at gcc dot gnu dot org  2010-03-15 10:32 -------
Is this valid?
The 'foo' typedef needs the address of X::x but occurs before it has been
defined.

Comeau gives
line 18: error: explicit specialization of member
          "X<<unnamed>>::x [with <unnamed>=false]" must precede its first use (
          at line 13)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43368



More information about the Gcc-bugs mailing list