g++-20001127: bug with forward declaration and vector
Laurent Bonnaud
Laurent.Bonnaud@inpg.fr
Fri Dec 8 08:51:00 GMT 2000
Hi,
here are details about this bug :
$ g++ -v
Reading specs from /usr/local/egcs/bin/../lib/gcc-lib/i686-pc-linux-gnu/2.97/specs
Configured with: ../gcc-20001127/configure --prefix=/usr/local/gcc-20001127 --enable-shared
gcc version 2.97 20001127 (experimental)
$ g++ -c bug-g++-fwd.cc
bug-g++-fwd.cc:12: parse error before '&' token
Here is the code and the preprocessed file :
class foo;
#include<vector>
/* this works
template<class T>
class vector
{
};
*/
void f(const vector<foo*>& bar);
--
Laurent.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug-align-double.ii.bz2
Type: application/x-bzip2
Size: 21637 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20001208/ee80aebe/attachment.bz2>
More information about the Gcc-bugs
mailing list