Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 509 Bytes

compiler-error-c2612.md

File metadata and controls

24 lines (20 loc) · 509 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2612
Compiler Error C2612
11/04/2016
C2612
C2612
6faacfd6-4455-41a2-808e-0f6799f84d6d

Compiler Error C2612

trailing 'char' illegal in base/member initializer list

A character appears after the last base or member in an initializer list.

The following sample generates C2612:

// C2612.cpp
class A {
public:
   int i;
   A( int ia ) : i( ia ) + {};   // C2612
};