This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26261] Rejects template with local static variable used in return type
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Feb 2006 17:27:51 -0000
- Subject: [Bug c++/26261] Rejects template with local static variable used in return type
- References: <bug-26261-102@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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