This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: function name lookup within templates in gcc 4.1
- From: Marcin Dalecki <martin at dalecki dot de>
- To: "Gareth Pearce" <tilps at probablyprime dot net>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Mon, 18 Apr 2005 09:26:42 +0200
- Subject: Re: function name lookup within templates in gcc 4.1
- References: <20050418033621.B5DCA4441A5@ds01.webmacher.de>
On 2005-04-18, at 04:37, Gareth Pearce wrote:
So I just started trying out gcc 4.1 - with a program which compiles
and
runs fine on gcc 3.3.
Attached is a reduced testcase which shows runtime segfault due to
stack
overflow if compiled with 4.1 but does not with 3.3. Trivial work
around is
to move the specific declaration above the template definition. Now I
see
potential for this to be 'the way the standard wants it to be', but
given I
don't have a copy of the standard I am unsure.
The type of 1 doesn't have nothing to do with sstring_t. Thus the 4.1
behavior
is correct.