Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 833 Bytes

compiler-error-c2507.md

File metadata and controls

32 lines (29 loc) · 833 Bytes
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Compiler Error C2507 | Microsoft Docs
11/04/2016
cpp-tools
error-reference
C2507
C++
C2507
f102aff5-de7d-4c3f-9cac-2ddf9ce02b14
9
corob-msft
corob
ghogen

Compiler Error C2507

'identifier' : too many virtual modifiers on the base class

A class or structure is declared as virtual more than once. Only one virtual modifier can appear for each class in a list of base classes.

The following sample generates C2507:

// C2507.cpp  
// compile with: /c  
class A {};  
class B : virtual virtual public A {};   // C2507  
class C : virtual public A {};   // OK