function name lookup within templates in gcc 4.1
Gareth Pearce
tilps@probablyprime.net
Mon Apr 18 02:43:00 GMT 2005
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.
Should I report this as a bug or is it a standards compliance improvement?
Regards,
Gareth Pearce
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.cc
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20050418/b5753bde/attachment.cc>
More information about the Gcc
mailing list