Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 620 Bytes

compiler-error-c2380.md

File metadata and controls

26 lines (22 loc) · 620 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2380
Compiler Error C2380
11/04/2016
C2380
C2380
717b1e6e-ddfe-4bac-a5f3-7f9a4dcb1572

Compiler Error C2380

type(s) preceding 'identifier' (constructor with return type, or illegal redefinition of current class-name?)

A constructor returns a value or redefines the class name.

The following sample generates C2326:

// C2380.cpp
// compile with: /c
class C {
public:
   int C();   // C2380, specifies an int return
   int C;   // C2380, redefinition of i
   C();   // OK
};