This is the mail archive of the
mailing list for the GCC project.
Re: Problem with 447.dealII in spec2006 because of r240707
- From: Bill Seurer <seurer at linux dot vnet dot ibm dot com>
- To: Andrew Pinski <pinskia at gmail dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Tue, 4 Oct 2016 11:09:45 -0500
- Subject: Re: Problem with 447.dealII in spec2006 because of r240707
- Authentication-results: sourceware.org; auth=none
- References: <firstname.lastname@example.org> <CA+=Sn1mXuf5_cMftrkMNHe9facRngTPJNhMns1Mu47KXGgUbGw@mail.gmail.com>
On 10/04/16 10:38, Andrew Pinski wrote:
On Tue, Oct 4, 2016 at 8:33 AM, Bill Seurer <email@example.com> wrote:
parameter_handler.cc: In member function 'double
ParameterHandler::get_double(const string&) const':
parameter_handler.cc:777:28: error: ISO C++ forbids comparison between
pointer and integer [-fpermissive]
AssertThrow ((s.c_str()!='\0') || (*endptr == '\0'),
With the recent revision r240707 comparing a pointer with \0 became an
error. Unfortunately this is used in several spots in the test case
447.dealII in spec2006 (one example above). There doesn't appear to be a
way to disable this error check and we're not supposed to change the spec
test cases. Any ideas on how to work around this?
Did you try -fpermissive ? Because that seems like it was listed ...
That affects more than just this specific error.
I reported it to spec via our company rep. Not sure how long their
turnaround is on stuff like this.