public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: evirt@iis.sinica.edu.tw To: gcc-gnats@gcc.gnu.org Subject: c++/8921: Trouble with member templates Date: Fri, 13 Dec 2002 02:06:00 -0000 [thread overview] Message-ID: <20021213100153.13149.qmail@sources.redhat.com> (raw) >Number: 8921 >Category: c++ >Synopsis: Trouble with member templates >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Fri Dec 13 02:06:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Chin-Lung Chang >Release: 3.2 20020903 >Organization: >Environment: Red Hat Linux 8.0 3.2-7 >Description: The following code is rejected by gcc: ----------------snip here------------------ struct A { template <typename T> void foo(); }; template <typename T> void bar(A& a) { a.foo<T>(); } void baz() { A a; bar<int>(a); } ----------------snip here------------------ bug.cc: In function `void bar(A&)': bug.cc:8: error: parse error before `>' token >How-To-Repeat: g++ -c bug.cc >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-12-13 10:06 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-12-13 2:06 evirt [this message] 2002-12-13 2:08 reichelt 2002-12-13 7:19 bangerth 2003-01-12 23:56 Volker Reichelt
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20021213100153.13149.qmail@sources.redhat.com \ --to=evirt@iis.sinica.edu.tw \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).