error: size of array is too large
Bug #1611876 reported by
mdavidsaver
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Fix Released
|
Low
|
Andrew Johnson | ||
3.14 |
Fix Released
|
Low
|
Andrew Johnson | ||
3.15 |
Fix Released
|
Low
|
Andrew Johnson | ||
3.16 |
Fix Released
|
Low
|
Andrew Johnson |
Bug Description
GCC is smart enough to detect new[] with constant size which would always result in allocation failure. With GCC 6 this causes a compile failure in epicsExceptionT
To post a comment you must log in.
> /epicsException Test.cpp: In function ‘void epicsExceptionT estPrivate( )’: onTest. cpp:61: 49: error: size of array is too large wSize]; onTest. cpp:74: 38: error: size of array is too large wSize];
> ../epicsExcepti
> char * p = new char [unsuccessfulNe
> ^
> ../epicsExcepti
> char [unsuccessfulNe
> ^
One workaround suggested by Bob Soliday is to remove the const from the definition of 'unsuccessfulNe wSize', which will prevent GCC from making this check.