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++/20212] [4.0 Regression] attribute unused vs. member function template


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


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