public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9418: g++ 3.2.1 does not recognise member function with ellipse (...)
@ 2003-01-23 10:26 Thomas.Willhalm
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas.Willhalm @ 2003-01-23 10:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9418
>Category:       c++
>Synopsis:       g++ 3.2.1 does not recognise member function with ellipse (...)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 23 10:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Thomas.Willhalm@uni-konstanz.de
>Release:        gcc 3.2.1
>Organization:
>Environment:
Gentoo Linux 1.4RC2, mobile Pentium III, kernel 2.4.19
>Description:
Hello,

thank you for your efforts to support free software. As you might guess,
I think I have found a bug in g++ 3.2.1. The compilation of the following 
(to the best od my knowledge correct) code exits with an error.
(icc and the online comeau compiler accept it.)

+++++++++++++ begin code +++++++++++++++++

struct foo {
  static int bar(...);
  static int const RET = sizeof(bar(0));
};

int main() 
{ return 0; }

+++++++++++++  end code  +++++++++++++++++

When the code is compiled without any command line flags, I get the
following error message:
g++bug.cpp:5: invalid use of undefined type `struct foo'
g++bug.cpp:3: forward declaration of `struct foo'

The error disappears, if bar is not a member of foo. Calling bar(0) works
fine, too.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c++/9418: g++ 3.2.1 does not recognise member function with ellipse (...)
@ 2003-01-23 15:12 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-01-23 15:12 UTC (permalink / raw)
  To: Thomas.Willhalm, gcc-bugs, gcc-prs, nobody

Synopsis: g++ 3.2.1 does not recognise member function with ellipse (...)

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Thu Jan 23 15:12:34 2003
State-Changed-Why:
    Duplicate of 9259. The problem doesn't have to do with the
    ellipsis, though, it also fails for any other function.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9418


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-23 15:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-23 10:26 c++/9418: g++ 3.2.1 does not recognise member function with ellipse (...) Thomas.Willhalm
2003-01-23 15:12 bangerth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).