Package: g++-4.1 Version: 4.1.1-16 Severity: important Transcript: $ g++-4.2 -o test test.cpp $ g++-4.1 -o test test.cpp test.cpp:17: error: parse error in template argument list $ g++-4.0 -o test test.cpp $
This is on today's unstable (4.2 from experimental) Line 17 is the one with the destructor (~Stack...) ========================== test.cpp ========================= #include <sys/types.h> template <typename Object, size_t Capacity = 16> class Stack { private: void* stk; void* stk_cache; public: explicit Stack<Object, Capacity>() : stk(0), stk_cache(0) { } Stack<Object, Capacity>() : stk(0), stk_cache(0) { } ~Stack<Object, Capacity>() { delete stk; delete stk_cache; } }; // class Stack int main(int argc, char* argv) { return(0); } ============================================================= Thanks for considering, dam -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-1-686 Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8) Versions of packages g++-4.1 depends on: ii gcc-4.1 4.1.1-16 The GNU C compiler ii gcc-4.1-base 4.1.1-16 The GNU Compiler Collection (base ii libc6 2.3.6.ds1-6 GNU C Library: Shared libraries ii libstdc++6-4.1-dev 4.1.1-16 The GNU Standard C++ Library v3 (d g++-4.1 recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]