[LLVMbugs] [Bug 13788] New: Clang crashed on a simple C++ case

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Sep 6 19:51:43 PDT 2012


             Bug #: 13788
           Summary: Clang crashed on a simple C++ case
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: zhousheng00 at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Here is the C++ code:

template <unsigned __N>
struct my_int {
  int V;

template <unsigned __N>
struct my_uint {
  unsigned V;
typedef my_int<48>      acc_t;
typedef my_int<36>      mult_t;
typedef my_int<18>      data_t;
typedef my_int<18> coef_t;
typedef my_uint<6> addr_t; //depends on CELL_SAMPLES

#define PHASES 4
#define STAGES 4
//#define DATA_SAMPLES 8004
#define DATA_SAMPLES 256

#if (STAGES == 2)
#define ACCINIT 18
#elif (STAGES == 1)  
#define ACCINIT 23  
#define ACCINIT 5  

template <typename T0, typename T1, typename T2, typename T3, typename T4, int
N, int M, int S>
    void exec(T1 *dataOut, T0 datain)
      const coef_t coeff[S][N]={
                               #include "coeff.h"

void poly_dec (
  acc_t      *dataOut,
  data_t     datain
  ) {
    exec<data_t, acc_t, mult_t, coef_t, addr_t, CELL_SAMPLES, PHASES,
STAGES>(dataOut, datain);


To repeat:   clang -c test.cpp

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list