From mboxrd@z Thu Jan 1 00:00:00 1970 From: david.abrahams@rcn.com To: gcc-gnats@gcc.gnu.org Subject: c++/4316: Mistaken parsing error? Date: Thu, 13 Sep 2001 06:16:00 -0000 Message-id: <20010913130716.27641.qmail@sourceware.cygnus.com> X-SW-Source: 2001-09/msg00265.html List-Id: >Number: 4316 >Category: c++ >Synopsis: Mistaken parsing error? >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Sep 13 06:16:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: david.abrahams@rcn.com >Release: unknown-1.0 >Organization: >Environment: cygwin/gcc-3.0.1 >Description: The following snippet causes a syntax error, but I believe that's not correct behavior. I realize that body is a dependent name, but the appearance of ::execute() should be enough to disambiguate it as a type. -Dave -------- template struct her { static int foo() { T::body::execute(); return 0; } }; >How-To-Repeat: compile the above >Fix: >Release-Note: >Audit-Trail: >Unformatted: