Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
787fbc3b
Verified
Commit
787fbc3b
authored
3 years ago
by
Johannes Pfeifer
Committed by
Sébastien Villemot
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Expand cryptic error message if a value is assigned a second time
(cherry picked from commit
4461544e
)
parent
b30d516a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dynare++/parser/cc/atom_assignings.cc
+1
-1
1 addition, 1 deletion
dynare++/parser/cc/atom_assignings.cc
with
1 addition
and
1 deletion
dynare++/parser/cc/atom_assignings.cc
+
1
−
1
View file @
787fbc3b
...
...
@@ -147,7 +147,7 @@ AtomAssignings::add_assignment(int asgn_off, const string &str, int name_len,
if
(
lname2expr
.
find
(
name
)
!=
lname2expr
.
end
())
{
// Prevent the occurrence of #415
std
::
cerr
<<
"Changing the value of "
<<
name
<<
" is not supported. Aborting."
<<
std
::
endl
;
std
::
cerr
<<
"Changing the value of "
<<
name
<<
"
through a second assignment (e.g. in initval)
is not supported. Aborting."
<<
std
::
endl
;
exit
(
EXIT_FAILURE
);
}
lname2expr
[
name
]
=
order
.
size
()
-
1
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment