This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ Patch / RFC] PR 46206
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Iain Sandoe <iain at codesourcery dot com>
- Cc: Paolo Carlini <paolo dot carlini at oracle dot com>, <dominiq at lps dot ens dot fr>, <gcc-patches at gcc dot gnu dot org>, <jason at redhat dot com>, <dje dot gcc at gmail dot com>
- Date: Fri, 09 Aug 2013 13:48:01 +0200
- Subject: Re: [C++ Patch / RFC] PR 46206
- References: <20130809105250 dot 85B7D3BE1E at mailhost dot lps dot ens dot fr> <5204CEB1 dot 8010605 at oracle dot com> <2443FCF9-FC46-4D74-91B2-CF1FAE69CD8B at codesourcery dot com>
Iain Sandoe <iain@codesourcery.com> writes:
> On 9 Aug 2013, at 12:12, Paolo Carlini wrote:
>
>> On 08/09/2013 12:52 PM, dominiq@lps.ens.fr wrote:
>>> On x86_64-apple-darwin10, g++.dg/lookup/typedef2.C fails with
>>>
>>> FAIL: g++.dg/lookup/typedef2.C -std=c++11 (test for excess errors)
>>> Excess errors:
>>> /opt/gcc/work/gcc/testsuite/g++.dg/lookup/typedef2.C:8:12: error: using
>>> typedef-name 'Foo1::Bar' after 'struct'
>>> /opt/gcc/work/gcc/testsuite/g++.dg/lookup/typedef2.C:8:19: error:
>>> invalid type in declaration before ';' token
>> As I said, the patch solves the issue on -linux, not just x86_64-linux,
>> but Linux more generally. Honestly, I don't know how much it will take me
>> to figure out a way to extend it to other targets, unless somebody
>> concretely helps.
>
> what output/analysis would help you in the short term?
> (maybe looking at the common factors between more than one failing target
> will help to isolate the issue).
FWIW, I see a similar failure on i386-pc-solaris2.10:
FAIL: g++.dg/lookup/typedef2.C -std=c++98 (test for excess errors)
Excess errors:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/lookup/typedef2.C:18:12: error: using typedef-name 'Foo2::Bar' after 'struct'
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/lookup/typedef2.C:18:19: error: invalid type in declaration before ';' token
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University