| Title: | DEC C Problem Reporting Forum | 
| Notice: | Report DEC C++ problems in TURRIS::C_PLUS_PLUS | 
| Moderator: | CXXC::REPETE TCHEON | 
| Created: | Fri Nov 13 1992 | 
| Last Modified: | Fri Jun 06 1997 | 
| Last Successful Update: | Fri Jun 06 1997 | 
| Number of topics: | 1299 | 
| Total number of notes: | 6249 | 
$ cc/ver
DEC C T5.6-001 on OpenVMS Alpha V7.1
$
$ type struct-1.c
struct {
        struct {
                int a, b;
        };
        int c;
} d;
void foo (void) {
        d.a= 1;
        d.b= 2;
        d.c= 3;
}
$
$ CC/WARN=ENA=ALL/stand=vaxc struct-1
        struct {
........^
%CC-W-UNSTRUCTMEM, The declaration of a member which is an unnamed struct or uni
on type is an extension and may not be portable.
at line number 2 in file USER$DISK:[BECKER.DECUS.SYMP97.MS-X]STRUCT-1.C;2
Internal compiler error detected at line 437 in file CSRC:[FE_COMMON]CMSYMTAB.C;
1.
%SYSTEM-F-ACCVIO, access violation, reason mask=00, virtual
address=000000000000
0000, PC=00000000001706C8, PS=0000001B
%TRACE-F-TRACEBACK, symbolic stack dump follows
  image    module    routine             line      rel PC           abs PC
 DECC$COMPILER                              0 00000000001606C8 00000000001706C8
 DECC$COMPILER                              0 00000000001616FC 00000000001716FC
 DECC$COMPILER                              0 000000000015364C 000000000016364C
 DECC$COMPILER                              0 00000000001A84B0 00000000001B84B0
 DECC$COMPILER                              0 000000000019ED44 00000000001AED44
 DECC$COMPILER                              0 000000000017506C 000000000018506C
 DECC$COMPILER                              0 00000000001507DC 00000000001607DC
 DECC$COMPILER  GEM_CP_VMS  GEM_CP_MAIN
                                         2415 00000000000014BC 000000000026AE7C
                                            0 FFFFFFFF860C50D8 FFFFFFFF860C50D8
$
| T.R | Title | User | Personal Name | Date | Lines | 
|---|---|---|---|---|---|
| 1285.1 | Real problem. Noted. | DECC::SULLIVAN | Jeff Sullivan | Wed Apr 09 1997 11:54 | 30 | 
| This is a problem with the latest development compilers and is also reproducible
on UNIX. See below. Note that it only shows up with -vaxc and -check.
I will report this in our internal bugtracking system.
Thanks for reporting the problem.
-Jeff
% gemcc -c decc_bugs1285.c
cc: Warning: decc_bugs1285.c, line 25: The declaration of a member which is an
unnamed struct or union type is an extension and may not be portable.
  struct {
--^
% gemcc -c decc_bugs1285.c -vaxc
cc: Info: decc_bugs1285.c, line 32: In this statement, "a" is a member of
another struct or union.
  d.a= 1;
--^
cc: Info: decc_bugs1285.c, line 33: In this statement, "b" is a member of
another struct or union.
  d.b= 2;
--^
% gemcc -c decc_bugs1285.c -vaxc -check 
Internal compiler error detected at line 437 in file
/usr/proj/decc2/mainline/src/fe_common/cmsymtab.c.
cc: Fatal: A memory access violation (bus error or segmentation fault)
has occurred.  Please submit a problem report.
 | |||||
| 1285.2 | Fixed | DECC::VOGEL | Wed Apr 16 1997 15:34 | 10 | |
|     
    This problem has been corrected in our internal sources.
    
    The fix should be included in the V5.6 SSB kit for DEC C.
    
    Thanks a lot for finding this.
    
    					Ed
    
    
 | |||||