On Tue, Jul 29, 2014 at 07:18:10PM +0200, Jan Blechta wrote:
> On Tue, 29 Jul 2014 17:48:04 +0100
> "Garth N. Wells" <[email protected]> wrote:
>
> >
> > On Tue, 29 Jul, 2014 at 2:33 PM, Jan Blechta
> > <[email protected]> wrote:
> > > BTW, this is the reason why
> > >
> > >  - dolfin-master-quick-precise-i386
> > >  - dolfin-master-quick-precise-amd64
> > >
> > > buildslaves fail. Full versions do not fail because they use
> > > developer build type which has -pedantic flag.
> > >
> > > Options:
> > >
> > >   1. simple one: adding -pedantic to CMAKE_CXX_FLAGS (which is used
> > > by all build types)
> > >
> > >   2. complicated: detect GCC 4.6 by build system and append
> > > -pedantic
> > >
> > > Which should be done?
> >
> > Has the bug been reported to Ubuntu on Launchpad?
>
> Not by me.
>
> > The 'ideal' fix
> > is that Ubuntu fix the version of gcc that is distributed with
> > Precise. We've been through this before for a bug in the STL.
>
> Could anybody try this on up-to-date Precise? I have only available one
> awaiting maintenance and update for quite a long time. Maybe it has
> been fixed upstream.
>
> Are Precise buildslaves up-to-date, Johannes?
>
> Test case:
>
>   $ wget -O test.c 
> "http://gcc.gnu.org/viewcvs/gcc/trunk/gcc/testsuite/g%2B%2B.dg/cpp0x/initlist67.C?view=co&revision=192295&content-type=text%2Fplain&pathrev=192295";
>   $ c++ --version
>   $ c++ -std=c++0x -c test.c # fails or passes?

Fails on Ubuntu 12.04 with gcc 4.6:

g++-4.6 (Ubuntu/Linaro 4.6.4-6ubuntu2) 4.6.4

>   $ c++ -std=c++0x -pedantic -c test.c # should pass

Works.

--
Anders
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to