This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14007] [3.3/3.4/3.5 Regression] Incorrect use of const partial specialization for reference template argument
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Feb 2004 20:17:00 -0000
- Subject: [Bug c++/14007] [3.3/3.4/3.5 Regression] Incorrect use of const partial specialization for reference template argument
- References: <20040203195712.14007.austern@apple.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-03 20:16 -------
Here is something which is easy for regression testers to reject:
template <class T> struct X { enum { val = 0 }; };
template <class T> struct X<const T> { enum { val = 1 }; };
int i[X<int&>::val == 0?1:-1];
Confirmed.
>From Phil's regression hunter: Search converges between 2002-02-17-trunk (#59) and 2002-02-24-
trunk (#60).
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid, wrong-code
Known to fail| |3.3.1 3.2.3 3.2.2 3.4.0
| |3.5.0
Known to work| |3.0.4 2.95.3
Priority|P2 |P1
Last reconfirmed|0000-00-00 00:00:00 |2004-02-03 20:16:58
date| |
Summary|Incorrect use of const |[3.3/3.4/3.5 Regression]
|partial specialization for |Incorrect use of const
|reference template argument |partial specialization for
| |reference template argument
Target Milestone|--- |3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14007