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]

Uncomplete template


$g++ -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
gcc version 2.95.2 20000220 (Debian GNU/Linux)

$g++ -c Pipo.cpp 

***
#include <string>
#include <vector>

class MyClass
{
protected:
  std::vector<std::pair<std::string,int> > v;

  void pipo()
  {
     v.push_back(std::pair("", 0)); // should be std::pair<std::string,
int>
  }
};
***
Pipo.cpp: In method `void MyClass::pipo()':
Pipo.cpp:11: Internal compiler error.
Pipo.cpp:11: Please submit a full bug report.
Pipo.cpp:11: See <URL:http://www.gnu.org/software/gcc/bugs.html> for
instructions.

--
Benoit Sibaud
R&D Engineer France Telecom/BD/FTR&D/DAC/OAT
--

Pipo.ii.gz


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