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

            Bug ID: 71182
           Summary: parser.c cp_lexer_previous_token sanitizer detects
                    member call on null pointer
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---

// ../../gcc7/gcc/cp/parser.c:766:7: runtime error: member call on null pointer
of type 'struct vec'
class A {
  template <typename> void As();
};
template <typename T> class B : A {
  void f() {
    A *g ;
    g ? g->As<T>() : nullptr;
  }
};

Reply via email to