Bug#325545: g++-4.0: ICE on simple (ill-formed) code
Package: g++-4.0
Version: 4.0.1-2
Severity: minor
This ill-formed code makes g++ ICE:
#include <iostream>
#include <ostream>
template <int> struct foo;
template<>
struct foo<0>
{
  typedef int t;
};
int main()
{
  std::cout<< typename foo<0>::t(42);
}
(The typename in the cout line should not be there)
Seems like an unhandled parse error.
-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.9-rc3
Locale: LANG=en_US.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Versions of packages g++-4.0 depends on:
ii  gcc-4.0                     4.0.1-2      The GNU C compiler
ii  gcc-4.0-base                4.0.1-2      The GNU Compiler Collection (base 
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libstdc++6-4.0-dev          4.0.1-2      The GNU Standard C++ Library v3 (d
g++-4.0 recommends no packages.
-- no debconf information
Reply to: