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++/24515] New: internal compiler error: in write_builtin_type, at cp/mangle.c:1784


command:
"gcc -g  -Wall vector_bug.cc -lstdc++"
results in error message:
"vector_bug.cc:5: internal compiler error:
 in write_builtin_type, at cp/mangle.c:1784
 Please submit a full bug report,
 with preprocessed source if appropriate."

preprocessed source:

// /usr/libexec/gcc/x86_64-redhat-linux/4.0.1/cc1plus -quiet -D_GNU_SOURCE
vector_bug.cc -quiet -dumpbase vector_bug.cc -mtune=k8 -auxbase vector_bug -g
-Wall -o - -frandom-seed=0
# 1 "vector_bug.cc"
# 1 "/home/ka/q/sse//"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "vector_bug.cc"
typedef float v4sf __attribute__ ((vector_size (16)));
typedef float v4sf_m_a __attribute__ ((may_alias, vector_size (16)));

class V4sf
{
 v4sf _v;
 public:
 V4sf() {}
 void set4(v4sf_m_a & f) {
   _v = f;
   asm ("shufps %2,%0,%1" : "=x" (_v) : "x" (_v), "n" (0));
 }

};

float x = 1.0001;

int main(int argc, char *argv[])
{
  V4sf X;

  X.set4(x);

  return 0;
}


-- 
           Summary: internal compiler error: in write_builtin_type, at
                    cp/mangle.c:1784
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: annabellesgarden at yahoo dot de
 GCC build triplet: gcc -g  -Wall vector_bug.cc -lstdc++
  GCC host triplet: x86_64-redhat-linux
GCC target triplet: x86_64-redhat-linux


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


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