This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30548] parse error
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2007 21:20:45 -0000
- Subject: [Bug c++/30548] parse error
- References: <bug-30548-6594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from igodard at pacbell dot net 2007-01-22 21:20 -------
p.p.s. The error depends on the kind of primary in front of the selection and
call. If the primary is a variable then no error, as shown in the previous
line. However, you can also make the error go away by wrapping the primary in a
cast:
component* z =
static_cast<component*>(&serialNumber3003::instance)->MMIOize<serialNumber3003>();
gives no error, but:
component* z = (&serialNumber3003::instance)->MMIOize<serialNumber3003>();
shows the bug. Seems bizarre to me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30548