This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12507] [3.3 Regression] use of template arg for fully specialized typedef allowed
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Oct 2003 15:48:28 -0000
- Subject: [Bug c++/12507] [3.3 Regression] use of template arg for fully specialized typedef allowed
- References: <20031004132236.12507.rmerkert@alphatech.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12507
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[3.3 Regression] Possible |[3.3 Regression] use of
|regression in 3.4 or bug in |template arg for fully
|3.3.1 |specialized typedef allowed
Version|3.4 |3.3.2
------- Additional Comments From bangerth at dealii dot org 2003-10-24 15:48 -------
Here is a reduced testcase:
------------------------
template <typename> struct A { A() {}};
typedef A<int> Ac;
Ac<double> a;
------------------------
gcc3.3.2 erroneously accepts it (and takes A<double> as can be seen
by looking at the assembler output.
W.