<html>
    <head>
      <base href="http://bugzilla.gdcproject.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ICE when initializing immutable char to void"
   href="http://bugzilla.gdcproject.org/show_bug.cgi?id=121">121</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ICE when initializing immutable char to void
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>GDC
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>4.8.x
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>gdc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>ibuclaw@gdcproject.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>slavo5150@yahoo.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following code...

import std.stdio;

immutable char c = void; 

void main()
{
   writeln(c);
}

.. causes GDC to ICE:

internal compiler error: in gimplify_init_constructor, at gimplify.c:4269
0x7b3be3 gimplify_init_constructor
    ../../gcc-4.8.2/gcc/gimplify.c:4269
0x7b445b gimplify_modify_expr_rhs
    ../../gcc-4.8.2/gcc/gimplify.c:4468
0x7b47af gimplify_modify_expr
    ../../gcc-4.8.2/gcc/gimplify.c:4861
0x7af1ab gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**,
bool (*)(tree_node*), int)
    ../../gcc-4.8.2/gcc/gimplify.c:7193
0x7b0f86 gimplify_stmt(tree_node**, gimple_statement_d**)
    ../../gcc-4.8.2/gcc/gimplify.c:5725
0x7b1d25 gimplify_and_add
    ../../gcc-4.8.2/gcc/gimplify.c:370
0x7b1d25 internal_get_tmp_var
    ../../gcc-4.8.2/gcc/gimplify.c:636
0x7ae668 gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**,
bool (*)(tree_node*), int)
    ../../gcc-4.8.2/gcc/gimplify.c:8023
0x7b329b gimplify_call_expr
    ../../gcc-4.8.2/gcc/gimplify.c:2669
0x7aec6d gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**,
bool (*)(tree_node*), int)
    ../../gcc-4.8.2/gcc/gimplify.c:7164
0x7b0f86 gimplify_stmt(tree_node**, gimple_statement_d**)
    ../../gcc-4.8.2/gcc/gimplify.c:5725
0x7aedbb gimplify_statement_list
    ../../gcc-4.8.2/gcc/gimplify.c:1561
0x7aedbb gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**,
bool (*)(tree_node*), int)
    ../../gcc-4.8.2/gcc/gimplify.c:7582
0x7b0f86 gimplify_stmt(tree_node**, gimple_statement_d**)
    ../../gcc-4.8.2/gcc/gimplify.c:5725
0x7b1652 gimplify_bind_expr
    ../../gcc-4.8.2/gcc/gimplify.c:1253
0x7aec4a gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**,
bool (*)(tree_node*), int)
    ../../gcc-4.8.2/gcc/gimplify.c:7364
0x7b0f86 gimplify_stmt(tree_node**, gimple_statement_d**)
    ../../gcc-4.8.2/gcc/gimplify.c:5725
0x7aedbb gimplify_statement_list
    ../../gcc-4.8.2/gcc/gimplify.c:1561
0x7aedbb gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**,
bool (*)(tree_node*), int)
    ../../gcc-4.8.2/gcc/gimplify.c:7582
0x7b0f86 gimplify_stmt(tree_node**, gimple_statement_d**)
    ../../gcc-4.8.2/gcc/gimplify.c:5725


I was creating use cases to try and figure out what section the compiler puts
variables in when I found this bug.  I don't know why anyone would want to do
such a thing, but the compiler shouldn't crash.  DMD 2.065 handles it fine.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>