KEMBAR78
Cannot create an array of structs whose name includes a Unicode character · Issue #4927 · ldc-developers/ldc · GitHub
Skip to content

Cannot create an array of structs whose name includes a Unicode character #4927

@tgehr

Description

@tgehr

test.d:

struct Σ{}
void main(){
	auto a = new Σ[](2);
}

Results in:

$ ./ldc2-1.40.1-linux-x86_64/bin/ldmd2 -run test.d
./ldc2-1.40.1-linux-x86_64/bin/../import/core/internal/array/construction.d(375):4:67: error: unexpected token in argument list
        jnc .L_D4core8internal5array12construction__T12_d_newarrayUTS2tt2ΣZQxFNaNbNembZAQv_Lcontinue
./ldc2-1.40.1-linux-x86_64/bin/../import/core/internal/array/construction.d(375):6:67: error: unexpected token in argument list
        jmp .L_D4core8internal5array12construction__T12_d_newarrayUTS2tt2ΣZQxFNaNbNembZAQv__llvm_asm_end0
./ldc2-1.40.1-linux-x86_64/bin/../import/core/internal/array/construction.d(375):7:1: error: unknown directive
.L_D4core8internal5array12construction__T12_d_newarrayUTS2tt2ΣZQxFNaNbNembZAQv_Lcontinue:
./ldc2-1.40.1-linux-x86_64/bin/../import/core/internal/array/construction.d(375):10:67: error: unexpected token in argument list
        jmp .L_D4core8internal5array12construction__T12_d_newarrayUTS2tt2ΣZQxFNaNbNembZAQv__llvm_asm_end0
./ldc2-1.40.1-linux-x86_64/bin/../import/core/internal/array/construction.d(375):11:1: error: unknown directive
.L_D4core8internal5array12construction__T12_d_newarrayUTS2tt2ΣZQxFNaNbNembZAQv__llvm_asm_end0:

This is a regression introduced between 1.35.0 and 1.36.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions