From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8696 invoked by alias); 29 Oct 2003 13:15:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 8687 invoked by uid 48); 29 Oct 2003 13:15:33 -0000 Date: Wed, 29 Oct 2003 13:32:00 -0000 From: "bsamwel at xs4all dot nl" To: gcc-bugs@gcc.gnu.org Message-ID: <20031029131531.12823.bsamwel@xs4all.nl> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/12823] New: Cannot call member function template of nested class inside template class X-Bugzilla-Reason: CC X-SW-Source: 2003-10/txt/msg02578.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12823 Summary: Cannot call member function template of nested class inside template class Product: gcc Version: 3.3.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bsamwel at xs4all dot nl CC: gcc-bugs at gcc dot gnu dot org GCC host triplet: i686-pc-linux-gnu AFAICS the following code should compile. template struct foo { struct barney { template void bar() { } }; void baz() { barney b; b.bar<0>(); // (This is line 15.) } }; Comeau's online compiler compiles this snippet just fine. GCC 3.3.2 gives me: gcc test.cc test.cc: In member function `void foo::baz()': test.cc:15: error: parse error before `;' token