[Bug c++/30548] parse error
igodard at pacbell dot net
gcc-bugzilla@gcc.gnu.org
Mon Jan 22 21:20:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list