diff options
author | Douglas Gregor <doug.gregor@gmail.com> | 2008-01-02 04:35:50 +0000 |
---|---|---|
committer | Doug Gregor <dgregor@gcc.gnu.org> | 2008-01-02 04:35:50 +0000 |
commit | 1a7817e4e80c5f7f84d61e6885adb2cfdd1e32e7 (patch) | |
tree | 135035bda8ab77ed5c7cbc16dfbc4e18cf05251d /gcc/cp/parser.c | |
parent | 224e5fa7438e7f6489861fe39e59ad853cc49929 (diff) | |
download | gcc-1a7817e4e80c5f7f84d61e6885adb2cfdd1e32e7.zip gcc-1a7817e4e80c5f7f84d61e6885adb2cfdd1e32e7.tar.gz gcc-1a7817e4e80c5f7f84d61e6885adb2cfdd1e32e7.tar.bz2 |
c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when in C++0x mode.
2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
* c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
in C++0x mode.
2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
* parser.c (cp_parser_check_decl_spec): Don't warn about "long
long" in C++0x mode; change the warning to note that "long long"
is only unsupported in C++98 mode.
2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
* g++.dg/cpp0x/long_long.C: New.
From-SVN: r131254
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r-- | gcc/cp/parser.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index d592620..16f5a4e 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -2147,8 +2147,9 @@ cp_parser_check_decl_spec (cp_decl_specifier_seq *decl_specs) { if (count > 2) error ("%<long long long%> is too long for GCC"); - else if (pedantic && !in_system_header && warn_long_long) - pedwarn ("ISO C++ does not support %<long long%>"); + else if (pedantic && !in_system_header && warn_long_long + && cxx_dialect == cxx98) + pedwarn ("ISO C++ 1998 does not support %<long long%>"); } else if (count > 1) { |