+2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ PR c++/69865
+ * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
+ here...
+ (c_common_init_options): ...to here.
+ (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
+
2016-02-19 Jakub Jelinek <jakub@redhat.com>
PR c++/69826
}
}
+ /* Set C++ standard to C++14 if not specified on the command line. */
+ if (c_dialect_cxx ())
+ set_std_cxx14 (/*ISO*/false);
+
global_dc->colorize_source_p = true;
}
&& flag_no_builtin)
flag_tree_loop_distribute_patterns = 0;
- /* Set C++ standard to C++14 if not specified on the command line. */
- if (c_dialect_cxx () && cxx_dialect == cxx_unset)
- set_std_cxx14 (/*ISO*/false);
-
/* -Woverlength-strings is off by default, but is enabled by -Wpedantic.
It is never enabled in C++, as the minimum limit is not normative
in that standard. */
flag_no_gnu_keywords = iso;
flag_no_nonansi_builtin = iso;
flag_iso = iso;
+ flag_isoc94 = 0;
+ flag_isoc99 = 0;
cxx_dialect = cxx98;
lang_hooks.name = "GNU C++98";
}
+2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ PR c++/69865
+ * c-c++-common/Wshift-negative-value-6.c: Add -std=c++11 before
+ -std=c++03.
+
2016-02-19 Jakub Jelinek <jakub@redhat.com>
PR c++/69826
/* PR c/65179 */
/* { dg-do compile } */
/* { dg-options "-O -Wextra" } */
-/* { dg-additional-options "-std=c++03" { target c++ } } */
+/* { dg-additional-options "-std=c++11 -std=c++03" { target c++ } } */
/* { dg-additional-options "-std=c90" { target c } } */
enum E {