From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15305 invoked by alias); 16 Oct 2006 23:25:31 -0000 Received: (qmail 14861 invoked by uid 48); 16 Oct 2006 23:25:23 -0000 Date: Mon, 16 Oct 2006 23:25:00 -0000 Message-ID: <20061016232523.14860.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/27732] [4.0 Regression] Parentheses elicit spurious error: "missing '>' to terminate the template argument list" In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "mmitchel at gcc dot gnu dot org" 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-10/txt/msg01441.txt.bz2 List-Id: ------- Comment #3 from mmitchel at gcc dot gnu dot org 2006-10-16 23:25 ------- James -- Case #1 in Comment #1 is accepted by current G++ 4.1 and mainline branches. I do not believe Case #2 is valid, as the standard says that a non-type template argument may be: the address of an object or function with external linkage, includ- ing function templates and function template-ids but excluding non- static class members, expressed as & id-expression Thus, the parentheses make this case invalid. Admittedly, that's pedantic, but I think that's what the standard says. Comment #3 is a separate enhancement request, and should be refiled separately. Thanks, -- Mark -- mmitchel at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[4.0/4.1/4.2 Regression] |[4.0 Regression] Parentheses |Parentheses elicit spurious |elicit spurious error: |error: "missing '>' to |"missing '>' to terminate |terminate the template |the template argument list" |argument list" | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27732