Logo etsi

ETSI's Bug Tracker

Notice: information submitted on the ETSI issue Tracker may be incorporated in ETSI publication(s) and therefore subject to the ETSI IPR policy.

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005361Part 01: TTCN-3 Core LanguageTechnicalpublic23-09-2009 17:2808-12-2009 16:28
ReporterAnthony Baire 
Assigned ToIna Schieferdecker 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Versionv4.1.1 (published 2009-06) 
Target Versionv4.2.1 (published 2010-07)Fixed in Versionv4.2.1 (published 2010-07) 
Summary0005361: BNF does not allow templates in return statements
DescriptionIt is possible to define TTCN-3 functions that return a template. However the current definition for return statements in the BNF does not allow returning a template:

  ReturnStatement ::= ReturnKeyword [Expression]

It should be replaced with the following:

  ReturnStatement ::= ReturnKeyword [Expression | TemplateBody]
  /* STATIC SEMANTICS - The Expression shall evaluate to an explicit value of a type compatible with the return type for functions returning a value and shall evaluate to an explicit value, template (literal or a template instance) or a matching mechanism compatible with the return type for functions returning a template. */

Note that section 19.10 should be updated as well.



TagsNo tags attached.
Clause Reference(s)19.10 A.1.6.7
Source (company - Author)     
Attached Files

- Relationships

-  Notes
(0009100)
Ina Schieferdecker (reporter)
08-12-2009 16:15
edited on: 08-12-2009 16:27

As proposed - just rewording the comment:

Expression shall evaluate to a value of a type compatible with the return type for functions returning a value. It shall evaluate to a value, template (literal or template instance), or a matching mechanism compatible with the return type for functions returning a template.


- Issue History
Date Modified Username Field Change
23-09-2009 17:28 Anthony Baire New Issue
23-09-2009 17:28 Anthony Baire Status new => assigned
23-09-2009 17:28 Anthony Baire Assigned To => Ina Schieferdecker
23-09-2009 17:28 Anthony Baire Clause Reference(s) => 19.10 A.1.6.7
23-09-2009 17:28 Anthony Baire Source (company - Author) =>
07-12-2009 14:34 Ina Schieferdecker Target Version => Edition 4.2.1 (not yet published)
07-12-2009 14:34 Ina Schieferdecker Description Updated
08-12-2009 16:15 Ina Schieferdecker Note Added: 0009100
08-12-2009 16:27 Ina Schieferdecker Note Edited: 0009100
08-12-2009 16:28 Ina Schieferdecker Status assigned => resolved
08-12-2009 16:28 Ina Schieferdecker Resolution open => fixed
08-12-2009 16:28 Ina Schieferdecker Fixed in Version => Edition 4.2.1 (not yet published)
08-12-2009 16:28 Ina Schieferdecker Status resolved => closed


MantisBT 1.2.14 [^]
Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker