In article <[EMAIL PROTECTED]>, Jacques
A. Vidrine <[EMAIL PROTECTED]> wrote:
> In summary, gcc has a kluge to work around a bug in the C++
> standard. It looks like you and Justin
Archie.
> have both found edge cases where the gcc kluge loses. If you can
> come up with a reasonable test case that reproduces the problem,
> perhaps it can be PR'd to the GCC folks?
Actually, I don't have a test case. I was only able to make it fail
when I moved <netinet/in.h> out of /usr/include -- which disables the
gcc kludge. I hope that Archie will be able to come up with a test
case that demonstrates the failure.
BTW, Archie, there are 3 places in the gcc code which can produce that
diagnostic: 1 in "cp/class.c" and 2 in "cp/decl.c". Search for "with
same name as" and you'll find them. It would be useful to find out
which one of those is the culprit in your failing case.
> As per the PR, I'm against #ifdef'ing structures like ip_opts for C++,
> since it is likely that a later C++ standard will be corrected.
I can't argue with that. I don't like my "solution" very much either.
:-)
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra & Co., Inc. Seattle, Washington USA
"Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message