public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/2861: Parser crashes while parsing a call a template function using the template keyword
@ 2003-01-01 13:38 neroden
  0 siblings, 0 replies; 2+ messages in thread
From: neroden @ 2003-01-01 13:38 UTC (permalink / raw)
  To: anene, atrick, gcc-bugs, gcc-prs, nobody

Synopsis: Parser crashes while parsing a call a template function using the template keyword

State-Changed-From-To: analyzed->closed
State-Changed-By: neroden
State-Changed-When: Wed Jan  1 05:38:43 2003
State-Changed-Why:
    As of 2003-01-01, mainline gives for the original:
    test.cxx: In function `int main()':
    test.cxx:11: error: `template' (as a disambiguator) is only allowed within
       templates
    Which is correct.
    Mainline compiles the revised testcase successfully.
    
    Chalk another fix up to the new parser.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=2861


^ permalink raw reply	[flat|nested] 2+ messages in thread

* c++/2861: Parser crashes while parsing a call a template function using the template keyword
@ 2001-05-17 21:26 anene
  0 siblings, 0 replies; 2+ messages in thread
From: anene @ 2001-05-17 21:26 UTC (permalink / raw)
  To: gcc-gnats; +Cc: atrick

>Number:         2861
>Category:       c++
>Synopsis:       Parser crashes while parsing a call a template function using the template keyword
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Thu May 17 21:26:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Amitabh Nene
>Release:        gcc version 3.0 20010516 (prerelease)
>Organization:
>Environment:
Linux 2.2.16-22enterprise #1 SMP Tue Aug 22 16:29:32 EDT 2000 i686 unknown
>Description:
g++bug.cpp: In function `int main()':
g++bug.cpp:10: Internal error #980519.
g++bug.cpp:10: Internal compiler error in build_member_call, at cp/init.c:1523
Please submit a full bug report, with preprocessed source if appropriate.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
>How-To-Repeat:
namespace Foo
{
    template<typename _T>
    void test() {
    }
}

int main()
{
    Foo::template test<int>();
}
>Fix:
Workaround is to use Foo::test<int>(), instead of 
Foo::template test<int>

However the other proprietary compiler I am using ALWAYS needs
the template keyword, hence its a severe bug for me from a code
management perspective (last thing i want is #ifdefs)
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-01 13:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-01 13:38 c++/2861: Parser crashes while parsing a call a template function using the template keyword neroden
  -- strict thread matches above, loose matches on Subject: below --
2001-05-17 21:26 anene

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).