This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34550] reference data template args appear to be broken in 4.2.1 ?
- From: "johill at lanl dot gov" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jan 2008 17:37:00 -0000
- Subject: [Bug c++/34550] reference data template args appear to be broken in 4.2.1 ?
- References: <bug-34550-9924@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from johill at lanl dot gov 2008-01-09 17:37 -------
Subject: RE: reference data template args appear to be broken in 4.2.1 ?
You conclusion is correct. Sorry about false alarm
> -----Original Message-----
> From: pinskia at gcc dot gnu dot org [mailto:gcc-bugzilla@gcc.gnu.org]
> Sent: Friday, December 21, 2007 3:27 PM
> To: johill@lanl.gov
> Subject: [Bug c++/34550] reference data template args appear to be broken
in
> 4.2.1 ?
>
>
>
> ------- Comment #1 from pinskia at gcc dot gnu dot org 2007-12-21 22:27
---
> ----
> You forgot "const" in the second template.
> Changing that to:
> template < class T, const int & R >
> Cat < T, R > :: Cat ( int )
> {
> }
>
> Allows for this to work.
>
>
> --
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34550
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34550