derived class can't invoke base-class constructor

Alan R. Rogers rogers@csbs.utah.edu
Wed Jul 26 14:01:00 GMT 2000


I hope that this bug report will be useful to you.  If the error is in my
source code, then I apologize in advance.

GCC VERSION: 2.95.2

OPERATING SYSTEM: SuSE linux version 6.4 for i386, running Linux
kernel 2.2.9

COMMAND LINE: gcc -c bug.cpp

OUTPUT:

 > gcc -c bug.cpp
bug.cpp: In method `buggy<charT,traits>::buggy(_STL::basic_istream<charT,traits> &)':
bug.cpp:9: Internal compiler error.
bug.cpp:9: Please submit a full bug report.
bug.cpp:9: See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.         

SOURCE:

/** file bug.cpp **/
#include <iosfwd>  // included from STLport-4.0

template <class charT, class traits >
class buggy : std::basic_istream<charT,traits> {
public:
  
  buggy(std::basic_istream<charT,traits>& is)
    : std::basic_istream(  is.rdbuf() )
  {}
};



More information about the Gcc-bugs mailing list