This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/26261] Rejects template with local static variable used in return type



------- Comment #2 from bangerth at dealii dot org  2006-02-13 17:27 -------
I should have noted that the problem can be avoided by declaring the
member function as
    X<Y<T>::dim> f();
instead of
    X<dim> f();

I do find this confusing, however.

W.


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]