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++/52131] New: dynamic allocation?


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

             Bug #: 52131
           Summary: dynamic allocation?
    Classification: Unclassified
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: paulmc@walla.co.il


Hi,

Itâs seems that the next lines donât arise any error or warnings - 

int bufSize = strlen(username) + 1 + strlen(column) + 1 ;
char buf[bufSize];

As far as I know, a buffer cannot be declared with size that known only on
runtime.


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