Re: [Boost-bugs] [Boost C++ Libraries] #1711: Boost Serialization export facility broken on gcc 4.1, 4.2

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1711: Boost Serialization export facility broken on gcc 4.1, 4.2
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-03-28 23:50:56


#1711: Boost Serialization export facility broken on gcc 4.1, 4.2
--------------------------------------+-------------------------------------
  Reporter: sohail | Owner: ramey
      Type: Bugs | Status: new
 Milestone: Boost 1.35.0 | Component: serialization
   Version: Boost Development Trunk | Severity: Showstopper
Resolution: | Keywords:
--------------------------------------+-------------------------------------
Comment (by Sohail Somani <boost-trac_at_[hidden]>):

 Uh... Is this version of g++ hopelessly broken?

 // From the standard (section 14.6.7)
 #include <iostream>

 using namespace std;

 void f(char){cout << "f(char)" << endl;}
 template<class T> void g(T t)
 {
         f(1); // f(char)
                               // dependent
         f(T(1));
                               // dependent
         f(t);
 }

 void f(int){cout << "f(int)" << endl;}

 int main()
 {
                               // will cause one call of f(char) followed
         g(2);
                               // by two calls of f(int)
                               // will cause three calls of f(char)
         g('a');
 }

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1711#comment:12>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC