Bug creation and email sending has been disabled, file new bugs at gcc.gnu.org/bugzilla
Bug 129 - Diagnostic bug in casting to array types.
Summary: Diagnostic bug in casting to array types.
Status: RESOLVED WORKSFORME
Alias: None
Product: GDC
Classification: Unclassified
Component: gdc (show other bugs)
Version: development
Hardware: All All
: --- normal
Assignee: Iain Buclaw
URL:
Depends on:
Blocks:
 
Reported: 2014-06-11 08:10 CEST by Iain Buclaw
Modified: 2017-11-10 22:38 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iain Buclaw 2014-06-11 08:10:52 CEST
The following code:

---
auto v = cast(int[5]) [1,2,3,4];
---

Emits the error: conversion to non-scalar type requested.

Which from a diagnostic perspective, is not at all informative - maybe the column support from 2.066 development will remedy things a little better, but at least we should move away from this GCC-style message and be more verbose.
Comment 1 Iain Buclaw 2017-11-10 22:38:50 CET
Seems like this is now a front-end error.