This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: chrono.cc build failure in maintainer-mode
- From: Chris Fairles <chris dot fairles at gmail dot com>
- To: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>, libstdc++ at gcc dot gnu dot org, Paolo Carlini <paolo dot carlini at oracle dot com>
- Date: Tue, 3 Nov 2009 06:19:43 -0500
- Subject: Re: chrono.cc build failure in maintainer-mode
- References: <20091103061831.GA23587@gmx.de>
Could be duration ctor enableif's (from the seconds/milliseconds on
that line)? They have parentheses already however (chrono header line
214-226 ish).
Chris
On Tue, Nov 3, 2009 at 1:18 AM, Ralf Wildenhues <Ralf.Wildenhues@gmx.de> wrote:
> I'm getting a build failure with --enable-maintainer-mode (which turns
> on -Werror) on trunk:
>
> cc1plus: warnings being treated as errors
> ../../../../gcc/libstdc++-v3/src/chrono.cc: In static member function ‘static std::chrono::system_clock::time_point std::chrono::system_clock::now()’:
> ../../../../gcc/libstdc++-v3/src/chrono.cc:56:40: error: suggest parentheses around ‘&&’ within ‘||’
>
> Aside, it seems weird that the compiler refers to && and || which do not
> occur in chrono.cc. ?Wrong error location?
>
> Should I open a PR?
>
> Thanks,
> Ralf
>