Commit 816843f2 authored by Botond Baranyi's avatar Botond Baranyi
Browse files

Fixed RT2 template error reporting and removed some warnings



Change-Id: Ib4550683ed9c1200743a28c25820a52482378306
Signed-off-by: Botond Baranyi's avatarBotond Baranyi <botond.baranyi@ericsson.com>
parent a0662052
......@@ -3579,7 +3579,7 @@ error:
{
Error_Context cntxt(this, "In send statement");
// checking the port reference
Type *port_type;
Type *port_type = NULL;
if (port_op.translate) {
PortScope* ps = my_sb->get_scope_port();
if (ps) {
......@@ -3973,7 +3973,7 @@ error:
const char *stmt_name = get_stmt_name();
Error_Context cntxt(this, "In %s statement", stmt_name);
// checking the port reference
Type *port_type;
Type *port_type = NULL;
if (port_op.translate) {
PortScope* ps = my_sb->get_scope_port();
if (ps) {
......
......@@ -16,8 +16,8 @@
#include "Vector.hh"
class TTCN_Buffer;
class ASN_BERdescriptor_t;
class ASN_Tag_t;
struct ASN_BERdescriptor_t;
struct ASN_Tag_t;
struct TTCN_OERdescriptor_t
{
......
......@@ -2838,12 +2838,12 @@ Base_Template* Record_Template::get_at(int index_value)
const Base_Template* Record_Template::get_at(int index_value) const
{
if (index_value < 0 || index_value >= single_value.n_elements)
TTCN_error("Internal error: accessing an element of a template of type %s using an "
"invalid index: %d.", get_descriptor()->name, index_value);
if (template_selection != SPECIFIC_VALUE)
TTCN_error("Accessing field %s of a non-specific template of type %s.",
fld_name(index_value), get_descriptor()->name);
if (index_value < 0 || index_value >= single_value.n_elements)
TTCN_error("Internal error: accessing an element of a template of type %s using an "
"invalid index: %d.", get_descriptor()->name, index_value);
return single_value.value_elements[index_value];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment