From -8785694156684232933
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,70a2e4346f845283
X-Google-Attributes: gidf78e5,public
From: Jason Merrill <jason@cygnus.com>
Subject: Re: Is this a compiler bug, or am I wrong? (templates again)
Date: 1997/02/22
Message-ID: <u9bu9d9quq.fsf@yorick.cygnus.com>#1/1
X-Deja-AN: 220666704
References: <01bc1d3e$2dd2d160$365aea83@vishnu.uni-paderborn.de>
X-Original-Date: 22 Feb 1997 00:39:41 -0800
Organization: Cygnus Support, Mountain View, CA
X-Auth: PGPMoose V1.1 PGP comp.std.c++
Return-Path: <daemon@newncar.UCAR.EDU>
Newsgroups: comp.std.c++


>>>>> Enno Rehling <enno@uni-paderborn.de> writes:

> For some reason, depending on the compiler I use, I get an error
> message on my program. The compiler that's causing my grief is g++,

> bug.cpp: In method `ptr<graph_edge>::ptr(graph_edge &)':
> bug.cpp:14: cannot lookup method in incomplete type `graph_edge'
> bug.cpp:15: in base initialization for class `pair<int,graph_edge *>'

g++ 2.7.2 instantiates class templates and their methods earlier than it
should, which can cause problems like this.  This bug will be fixed in 2.8.

Jason
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]



