Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.01 KB

compiler-warning-level-1-c4788.md

File metadata and controls

30 lines (22 loc) · 1.01 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (Level 1) C4788
Compiler Warning (Level 1) C4788
11/04/2016
C4788
C4788
47d75bda-f833-4bdd-93a0-a134df0cd303

Compiler Warning (Level 1) C4788

'identifier' : identifier was truncated to 'number' characters

The compiler limits the maximum length allowed for a function name. When the compiler generates funclets for EH/SEH code, it forms the funclet name by prepending the function name with some text, for example "__catch", "__unwind", or another string.

The resulting funclet name can be too long, and the compiler will truncate it and generate C4788.

To resolve this warning, shorten the original function name. If the function is a C++ function template or method, use a typedef for part of the name. For example:

C1<x, y, z<T>>::C2<a,b,c>::f

can be replaced by:

typedef C1<x, y, z<T>>::C2<a,b,c> new_class ;
new_class::f

This warning only occurs in the x64 compiler.