From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4447 invoked by alias); 22 May 2006 20:08:25 -0000 Received: (qmail 4373 invoked by uid 48); 22 May 2006 20:08:16 -0000 Date: Mon, 22 May 2006 20:08:00 -0000 Subject: [Bug c++/27732] New: Parentheses elicit spurious error: "missing '>' to terminate the template argument list" X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "widman at gimpel dot com" 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 X-SW-Source: 2006-05/txt/msg02199.txt.bz2 List-Id: I get spurious errors from g++ in the following cases: // case 1: int m; template< int* p> struct A { }; template<> struct A<&(m)>; // case 2: int m; template< int* p> struct A { }; template<> struct A<(&m)>; Just a guess: is there something about the parse of '(' that gums up the works? -- Summary: Parentheses elicit spurious error: "missing '>' to terminate the template argument list" Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: widman at gimpel dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27732