This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/78283] New: -Wc++1z-compat warning is sticky


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78283

            Bug ID: 78283
           Summary: -Wc++1z-compat warning is sticky
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

// { dg-do compile }
// { dg-options "-Wall" }

void foo () throw () {}         // { dg-bogus "mangled name" }

template <class T>
T bar (T x) { return x; }       // { dg-warning "mangled name" "" { target
c++14_down } }

void baz () {                   // { dg-bogus "mangled name" }
  return (bar (foo)) ();
}

void decl () {}                 // { dg-bogus "mangled name" }

fails, because we never reset G.need_cxx1z_warning.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]