http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60306

            Bug ID: 60306
           Summary: Incorrect devirtualization "pure virtual method
                    called"
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bredelin at ucla dot edu

Created attachment 32192
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32192&action=edit
File that exhibits the compilation error.

When compiled with GCC 4.9, my C++ code gives:

pure virtual method called
terminate called without an active exception
Aborted

This goes away if I compile with -fno-devirtualize, or if I compile with GCC
4.8.2.

I compiled with:

% g++-4.9 -O3 main.C -std=c++11 -g
% ./a.out

Reply via email to