This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26696] New: ICE with statement forming unused static member function reference
- From: "marco at technoboredom dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2006 14:04:43 -0000
- Subject: [Bug c++/26696] New: ICE with statement forming unused static member function reference
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Testcase is short enough:
struct A
{
static void f() {}
};
int main()
{
A a;
a.f;
}
Produces a segfault on the line where "a.f" occurs. It should instead issue the
warning "statement is a reference, not call, to function A::f". gcc 4.1.0 (at
least the experimental mingw cross compiler I'm using here) seems to be
affected too.
--
Summary: ICE with statement forming unused static member function
reference
Product: gcc
Version: 4.0.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: marco at technoboredom dot net
GCC build triplet: i586-suse-linux
GCC host triplet: i586-suse-linux
GCC target triplet: i586-suse-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26696