Re: Why clang++37 behaves differently on 9.3 and 10.3?

2016-05-18 Thread Matthias Andree
Am 12.05.2016 um 19:59 schrieb Dimitry Andric: > On 12 May 2016, at 13:33, Yuri wrote: >> >> clang++37 compiles this simple program fine on 10.3, but fails on 9.3. >> >> Why does it behave differently on different OS versions? >> >> It looks like it ignores -std=c++11 on 9.3. > > You cannot

Re: Why clang++37 behaves differently on 9.3 and 10.3?

2016-05-12 Thread Dimitry Andric
On 12 May 2016, at 13:33, Yuri wrote: > > clang++37 compiles this simple program fine on 10.3, but fails on 9.3. > > Why does it behave differently on different OS versions? > > It looks like it ignores -std=c++11 on 9.3. You cannot compile for C++11 on a 9.x installation,

Re: Why clang++37 behaves differently on 9.3 and 10.3?

2016-05-12 Thread Yuri
On 05/12/2016 04:33, Yuri wrote: clang++37 compiles this simple program fine on 10.3, but fails on 9.3. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209467 Yuri ___ freebsd-ports@freebsd.org mailing list

Why clang++37 behaves differently on 9.3 and 10.3?

2016-05-12 Thread Yuri
clang++37 compiles this simple program fine on 10.3, but fails on 9.3. Why does it behave differently on different OS versions? It looks like it ignores -std=c++11 on 9.3. Yuri ---program--- #include int main() { const int vmax = std::numeric_limits::max(); static_assert(vmax>0, ""); }