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++/30022] New: [4.0/4.1/4.2/4.3 regression] ICE on vector operand in division


The following code snippet crashes the C++ frontend since GCC 4.0.0:

================================================
void foo()
{
  int __attribute__((vector_size(8))) v;
  v = 1/v;
}
================================================

bug.cc: In function 'void foo()':
bug.cc:4: internal compiler error: in type_after_usual_arithmetic_conversions,
at cp/typeck.c:266
Please submit a full bug report, [etc.]

Will post a patch soon.


-- 
           Summary: [4.0/4.1/4.2/4.3 regression] ICE on vector operand in
                    division
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: reichelt at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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