TADS Bug Database

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000233TADS 3Compilerpublic2015-04-02 15:332015-08-05 22:15
Reportertads3user 
Assigned ToMichael Roberts 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
PlatformfrobtadsOSlinuxOS Version3.2.0-4-amd64
Summary0000233: Compiler assertion errors with inline objects
DescriptionWhen I try to compile the following program, I get a compile-time assertion (t3make: tads3/tct3stm.cpp:2042: virtual void CTPNAnonFunc::gen_code(int, int): Assertion `0' failed.)


#include "tads.h"

main(args)
{
    local o = object {
        name = 'a name';
        action() {
            "string";
        }
    };
}

Incidentally, the following program compiles fine:

#include "tads.h"

main(args)
{
    local s;
    local o = object {
        name = 'a name';
        action() {
            s = 'string';
            "<<s>>";
        }
    };
}
TagsNo tags attached.
Fixed In Version3.1.4
Attached Files

- Relationships

-  Notes
(0000394)
Michael Roberts (administrator)
2015-08-05 21:07

Fixed for the next update. Thanks for the clear and concise test case!
(0000399)
tads3user (reporter)
2015-08-05 22:15

Thank you!

- Issue History
Date Modified Username Field Change
2015-04-02 15:33 tads3user New Issue
2015-08-05 21:07 Michael Roberts Fixed In Version => 3.1.4
2015-08-05 21:07 Michael Roberts Note Added: 0000394
2015-08-05 21:07 Michael Roberts Assigned To => Michael Roberts
2015-08-05 21:07 Michael Roberts Status new => resolved
2015-08-05 21:07 Michael Roberts Resolution open => fixed
2015-08-05 22:15 tads3user Note Added: 0000399


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker