This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/4316: Mistaken parsing error?
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/4316: Mistaken parsing error?
- From: david dot abrahams at rcn dot com
- Date: 13 Sep 2001 13:07:16 -0000
- Reply-To: david dot abrahams at rcn dot com
>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<typename T>
struct her
{
static int foo()
{
T::body::execute();
return 0;
}
};
>How-To-Repeat:
compile the above
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: