This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16783] New: Accepts invalid integral constant expression for array size


As stated in PR 16711, we accept this code: 
---------------- 
int array [((int)(void*)1)]; 
---------------- 
even though the array size is not an integral constant expression. 
That's odd, since we reject this expression in various other 
places (see PR 16711), but accept it here. We shouldn't. 
 
W.

-- 
           Summary: Accepts invalid integral constant expression for array
                    size
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16783


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]