Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Ticket #99 (closed defect: fixed)

Opened 2 months ago

Last modified 2 months ago

unknown type 39 and assertion failure on variable declarations with strange tuple types

Reported by: JarrettBillingsley Assigned to:
Priority: major Milestone:
Version: Keywords:
Cc:

Description

module foo;

import tango.core.Traits;

struct S
{
	int opApply(T)(T dg)
	{
		alias ParameterTupleOf!(T) U;
		U u;
		return 0;
	}
}

void main()
{
	foreach(int x, int y; S()){}
}

This gives the error

trying to convert unknown type with value 39
llvmdc: gen/tollvm.cpp:178: const llvm::Type* DtoType(Type*): Assertion `0' failed.
Aborted

Change History

10/05/08 05:50:37 changed by ChristianK

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [648]. Thanks for the report - I didn't even know using tuples as types for declarations was legal!

Copyright © 2008, LDC Development Team.