This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14007] [3.3/3.4/3.5 Regression] Incorrect use of const partial specialization for reference template argument


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]