www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 48] New: scalar op vector is broken


             Bug #: 48
           Summary: scalar op vector is broken
    Classification: Unclassified
           Product: GDC
           Version: development
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
        AssignedTo: ibuclaw gdcproject.org
        ReportedBy: code dawg.eu

void foo(__vector(float[4]) a)
    auto works =3D a + 3;
    auto bug =3D 3 + a;

foo.d: In function =E2=80=98foo.foo=E2=80=99:
foo.d:1: error: type mismatch in binary expression

vector(4) float

vector(4) float

bug =3D a + { 3.0e+0, 3.0e+0, 3.0e+0, 3.0e+0 };

foo.d:1: internal compiler error: verify_gimple failed
0x9aa546 verify_gimple_in_seq(gimple_statement_d*)
0x812c41 gimplify_body(tree_node*, bool)
0x812f5d gimplify_function_tree(tree_node*)
0x6b3107 cgraph_analyze_function
0x6b5973 cgraph_analyze_functions
0x6b6ad0 finalize_compilation_unit()
0x600ff4 d_write_global_declarations
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gdcproject.org/bugzilla> for instructions.

Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=3Demail
------- You are receiving this mail because: -------
You are watching all bug changes.=
Apr 08 2013