[asterisk-bugs] [Asterisk 0018073]: ICC compilation bug

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Sep 29 10:43:48 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18073 
====================================================================== 
Reported By:                mich
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18073
Category:                   Applications/General
Reproducibility:            have not tried
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-09-29 10:37 CDT
Last Modified:              2010-09-29 10:43 CDT
====================================================================== 
Summary:                    ICC compilation bug
Description: 
While trying to compile by icc got this error:

http.c(125): error: an initializer cannot be specified for an indirect
flexible array member
  	{ AST_HTTP_UNKNOWN,     "UNKNOWN" },
  	                        ^

http.c(126): error: an initializer cannot be specified for an indirect
flexible array member
  	{ AST_HTTP_GET,         "GET" },
...
It's strange that gcc not showing error,
http://bytes.com/topic/c/answers/614133-enum-within-structure
====================================================================== 

---------------------------------------------------------------------- 
 (0127500) mich (reporter) - 2010-09-29 10:43
 https://issues.asterisk.org/view.php?id=18073#c127500 
---------------------------------------------------------------------- 
Also attached full output of make
Intel compiler 11.1.073 (last available and fully compatible with gcc 4) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-09-29 10:43 mich           Note Added: 0127500                          
======================================================================




More information about the asterisk-bugs mailing list