Bug 569624 - Invalid error marker for port arrays in log2str
Summary: Invalid error marker for port arrays in log2str
Status: UNCONFIRMED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: titan.plugins (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-10 08:31 EST by Anton Vikstrom CLA
Modified: 2021-04-23 11:10 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Vikstrom CLA 2020-12-10 08:31:46 EST
Titan Designer plug-in (version "7/CAX 105 7730 R2A (7.2.pl0)", but this page would not allow me to select higher than 7.1.0) shows an invalid error marker:

  “Refence to a value or template was expected instead of port”

when a port array is used in log2str. Titan transforms this without problem to a string so that port name can be used in the log, so this code is valid.

Minimal example:

import from IPL4asp_PortType all;

type component Minimal_CT
{
    port IPL4asp_PT array_PT[1]
    port IPL4asp_PT single_PT
}

testcase tc_log_port()
runs on Minimal_CT
{
    setverdict(pass);

    // No error markers:
    log(single_PT);
    log(log2str("Port named :", single_PT));
    var charstring vl_logstring_1 := log2str("Port named :", single_PT);

    // Error markers on all:
    log(array_PT[0]);
    log(log2str("Port named :", array_PT[0]));
    var charstring vl_logstring_2 := log2str("Port named :", array_PT[0]);
}
Comment 1 Denis Roy CLA 2021-04-23 11:10:15 EDT
This bug was migrated to GitLab: https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues