[Bug c++/10291] error referencing a static local from a local struct in template code

sebor at roguewave dot com gcc-bugzilla@gcc.gnu.org
Fri Apr 30 02:38:00 GMT 2004


------- Additional Comments From sebor at roguewave dot com  2004-04-30 01:46 -------
(In reply to comment #5)
> I almost think this is related to DR 191
<http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_active.html#191>.

I don't see it. The original test case seems to be covered by bullet 4:

    if X is a local class (9.8) or is a nested class of a local class,
    before the definition of class X in a block enclosing the definition
    of class X

What makes you think it's related?
Martin

-- 


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



More information about the Gcc-bugs mailing list