This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52131] New: dynamic allocation?
- From: "paulmc at walla dot co.il" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 06 Feb 2012 07:25:26 +0000
- Subject: [Bug c++/52131] New: dynamic allocation?
- Auto-submitted: auto-generated
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.