Source: adolc
Severity: minor
Tags: patch
User: [email protected]
Usertags: clang-ftbfs

Hello,

Using the rebuild infrastructure, your package fails to build with clang 
(instead of gcc).

We detected this kinf of error:
http://clang.debian.net/status.php?version=3.4.2&key=NON-POD

Full build log is available here:
http://clang.debian.net/logs/2014-06-16/adolc_2.5.0-3_unstable_clang.log

Thanks,
Alexander


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.13-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- adolc-2.5.0/ADOL-C/src/sparse/sparsedrivers.cpp	2013-09-12 07:26:28.000000000 -0400
+++ adolc-2.5.0-my/ADOL-C/src/sparse/sparsedrivers.cpp	2014-06-19 17:02:33.677055948 -0400
@@ -1139,7 +1139,8 @@
     setMode(ADTL_INDO);
     {
 #ifdef __GNUC__
-	adouble x[n],y[m];
+	adouble *x = static_cast<adouble *>(alloca(sizeof(adouble) * n));
+	adouble *y = static_cast<adouble *>(alloca(sizeof(adouble) * m));
 #else
 	adouble *x, *y;
 	x = new adouble[n];
@@ -1202,7 +1203,8 @@
     setMode(ADTL_FOV);
     {
 #ifdef __GNUC__
-	adouble x[n],y[m];
+	adouble *x = static_cast<adouble *>(alloca(sizeof(adouble) * n));
+	adouble *y = static_cast<adouble *>(alloca(sizeof(adouble) * m));
 #else
 	adouble *x, *y;
 	x = new adouble[n];

Reply via email to