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
0005087Part 01: TTCN-3 Core LanguageTechnicalpublic16-04-2009 16:0406-07-2009 17:49
ReporterGyorgy Rethy 
Assigned ToIna Schieferdecker 
PriorityurgentSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Versionv4.2.1 (published 2010-07)Fixed in Versionv4.2.1 (published 2010-07) 
Summary0005087: __LINE__ macro should return integer
DescriptionThe __LINE__ TTCN-3 macro is currently defined to return the line number as a charstring value. The macros (in general) were requested by 3GPP and the resolution of CR415 has chosen the names of the macros to be in line with the standard syntax and semantics of C/C++ preprocessors. However, in the latter __LINE__ is replaced by an integer value and not with a string value. See for example: http://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html [^]

Thus, currently TTCN-3 defines a semantics for __LINE__ that deviates from other languages.

Proposal: change the return type of the __LINE__ macro to integer in $D.3.
TagsNo tags attached.
Clause Reference(s)D.3
Source (company - Author)L.M.Ericsson
Attached Filesdoc file icon CR5087_LINE_macro.doc [^] (24,064 bytes) 22-04-2009 14:19
doc file icon CR5087_LINE_macro_v2.doc [^] (125,952 bytes) 01-07-2009 10:46
doc file icon CR5087_LINE_macro_v3.doc [^] (126,976 bytes) 03-07-2009 11:40
doc file icon CR5087_LINE_macro_v4.doc [^] (129,536 bytes) 06-07-2009 17:41

- Relationships

-  Notes
(0008539)
Tibor Csöndes (reporter)
22-04-2009 14:21

Suggestion for change has been uploaded. We asked tool vendors oppinion, we are waiting for answers.
(0008803)
Tibor Csöndes (reporter)
01-07-2009 10:56

According to the minutes of CR resolution meeting(49TD13r2)new suggestion uploaded.

While v3.4.1 and v4.1.1 has defined __LINE__ macro as a charstring we have to inform tool vendors have already developed __LINE__ macro that their solution also compliant with the standard.
(0008827)
Gyorgy Rethy (reporter)
03-07-2009 11:48

CR5087_LINE_macro_v3.doc:
Referring to the end-of-line is moved from the note to the main text as it is essential from the point of view of the concrete number returned
(0008830)
Tibor Csöndes (reporter)
03-07-2009 12:20

v3 Ok, with me!
(0008849)
Ina Schieferdecker (reporter)
06-07-2009 17:42

end-of-line changed into newline

first line has number 1

editorial changes

- Issue History
Date Modified Username Field Change
16-04-2009 16:04 Gyorgy Rethy New Issue
16-04-2009 16:04 Gyorgy Rethy Clause Reference(s) => D.3
16-04-2009 16:04 Gyorgy Rethy Source (company - Author) => L.M.Ericsson
16-04-2009 16:07 Gyorgy Rethy Description Updated
20-04-2009 11:16 Ina Schieferdecker Project TTCN-3 Change Requests => Part 01: TTCN-3 Core Language
20-04-2009 11:16 Ina Schieferdecker Assigned To => Tibor Csöndes
20-04-2009 11:16 Ina Schieferdecker Status new => assigned
20-04-2009 11:16 Ina Schieferdecker Target Version => Edition 4.2.1 (not yet published)
22-04-2009 14:19 Tibor Csöndes File Added: CR5087_LINE_macro.doc
22-04-2009 14:21 Tibor Csöndes Note Added: 0008539
01-07-2009 10:46 Tibor Csöndes File Added: CR5087_LINE_macro_v2.doc
01-07-2009 10:56 Tibor Csöndes Note Added: 0008803
01-07-2009 10:58 Tibor Csöndes Assigned To Tibor Csöndes => Gyorgy Rethy
03-07-2009 11:40 Gyorgy Rethy File Added: CR5087_LINE_macro_v3.doc
03-07-2009 11:48 Gyorgy Rethy Note Added: 0008827
03-07-2009 12:20 Tibor Csöndes Note Added: 0008830
03-07-2009 12:21 Gyorgy Rethy Assigned To Gyorgy Rethy => Ina Schieferdecker
03-07-2009 12:21 Gyorgy Rethy Status assigned => resolved
03-07-2009 12:21 Gyorgy Rethy Resolution open => fixed
03-07-2009 12:21 Gyorgy Rethy Fixed in Version => Edition 4.2.1 (not yet published)
06-07-2009 17:41 Ina Schieferdecker File Added: CR5087_LINE_macro_v4.doc
06-07-2009 17:42 Ina Schieferdecker Note Added: 0008849
06-07-2009 17:49 Ina Schieferdecker Status resolved => closed


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