Knowledge Base |

# BUG: Divide by Zero Error Compiling an Empty Structure

Article ID: 123659

Article Last Modified on 10/24/2003

APPLIES TO

- Microsoft FORTRAN PowerStation 1.0 Standard Edition
- Microsoft Fortran PowerStation 1.0a for MS-DOS
- Microsoft FORTRAN PowerStation 32

This article was previously published under Q123659

## SYMPTOMS

When you compile a program that contains an empty structure declaration, it fails giving the following error messages:
Under MS-DOS:
error F2385: EMPTY : STRUCTURE has no elements
DOSXNT : fatal error DX1020: unhandled exception: Divide by zero exception
Under Windows NT:
f13232.exe - Application error
The exception Integer division by zero (0Xc0000094) occurred in the application at location 0x0001a2e9.

## RESOLUTION

Do not use an empty structure declaration.

## STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

## MORE INFORMATION

### Sample Code to Reproduce Problem

    C Compile options needed: none
       structure /empty/
       end structure
       end

Additional query words: 1.00 1.00a

Keywords: KB123659