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++/36655] unjustified warning for "extern template" when using -pedantic -std=c++0x



------- Comment #4 from gcc-bugzilla at contacts dot eelis dot net  2008-06-29 12:53 -------
(In reply to comment #3)
> Fixed for 4.4.0.

Thanks! However, I just noticed that while the problem has been fixed for
function templates, it's still there for class templates. This code:

  template <typename> void f() {}
  extern template void f<int>();

still triggers the warning when compiled with g++ -std=c++0x -pedantic.


-- 

gcc-bugzilla at contacts dot eelis dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36655


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