This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20212] [4.0 Regression] attribute unused vs. member function template
- 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: 25 Feb 2005 19:00:49 -0000
- Subject: [Bug c++/20212] [4.0 Regression] attribute unused vs. member function template
- References: <20050225181352.20212.bkoz@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-25 19:00 -------
Actually I figured out an obvious way to reduce it after looking at the error message and seeing that the
unused parameter was pointing to the prototype of the function:
template<int> void f(int);
void g(int i)
{
f<0>(i);
}
template<int> void f(int i __attribute__((unused)) )
{}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Known to fail| |4.0.0
Known to work| |3.4.0
Last reconfirmed|0000-00-00 00:00:00 |2005-02-25 19:00:48
date| |
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20212