ac-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_CXX_TEMPLATE_KEYWORD_QUALIFIER VS. GCC 3.4


From: Bernardo Innocenti
Subject: AC_CXX_TEMPLATE_KEYWORD_QUALIFIER VS. GCC 3.4
Date: Wed, 04 Feb 2004 03:13:55 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115

Hello,

the AC_CXX_TEMPLATE_KEYWORD_QUALIFIER test fails
with GCC 3.4.  I believe it's a bug in the test,
but I don't have access to the C++ standard to
verify.

foo.cc: In function `int main()':
foo.cc:9: error: `template' (as a disambiguator) is only allowed within 
templates

See the test source:

class A {
public:
      A() {};
      template<class T> static T convert() { return T(); }
};

int main ()
{
        double z = A::template convert<double>();
        return 0;
}


If you think GCC should really accept this code, I'll
file a bug report in GCC's bugzilla.

--
 // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]