Package: aspectc++
Version: 1.0pre4~svn.20080409+dfsg-3
Severity: important
Hello,
first, I am sorry for previous bug, in which I mispelled my email address,
second, I have an error error while parsing following source file
with ac++
[test.cpp]==========================
template<class T>
struct MyClass
{
static MyClass<T>* ptr;
static MyClass<T> ref;
};
// this does compile
#ifdef COMPILE
template<class T>
MyClass<T>* MyClass<T>::ptr = &MyClass<T>::ref;
#else
// this does not compile
template<class H>
MyClass<H>* MyClass<H>::ptr = &MyClass<H>::ref;
#endif
====================================
the following command fails
$ ac++ -c test.cpp -p . -a 0
test.cpp:17: error: `H' undeclared here
while this one does not fail
$ ac++ -c test.cpp -p . -a 0
it seems to be a problem of template naming,
as if the name of the template used in the
class declaration would be important
in the static member initialization
Hope it helps to improve aspectc++
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-2-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages aspectc++ depends on:
ii g++ 4:4.2.2-2 The GNU C++ compiler
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libgcc1 1:4.2.2-4 GCC support library
ii libstdc++6 4.2.2-4 The GNU Standard C++ Library v3
ii libxml2 2.6.31.dfsg-2 GNOME XML library
aspectc++ recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]