@@ -2318,7 +2318,7 @@ namespace yy {
23182318 /* op */ op,
23192319 /* variables */ v,
23202320 /* actions */ a,
2321- /* file name */ *yystack_[3 ].location .end .filename ,
2321+ /* file name */ std::unique_ptr<std::string>( new std::string ( *yystack_[3 ].location .end .filename )) ,
23222322 /* line number */ yystack_[3 ].location .end .line
23232323 ));
23242324
@@ -2341,7 +2341,7 @@ namespace yy {
23412341 /* op */ yystack_[0 ].value .as < std::unique_ptr<Operator> > ().release (),
23422342 /* variables */ v,
23432343 /* actions */ NULL ,
2344- /* file name */ *yystack_[2 ].location .end .filename ,
2344+ /* file name */ std::unique_ptr<std::string>( new std::string ( *yystack_[2 ].location .end .filename )) ,
23452345 /* line number */ yystack_[2 ].location .end .line
23462346 ));
23472347 if (driver.addSecRule (std::move (rule)) == false ) {
@@ -2362,7 +2362,7 @@ namespace yy {
23622362 /* op */ NULL ,
23632363 /* variables */ NULL ,
23642364 /* actions */ a,
2365- /* file name */ *yystack_[1 ].location .end .filename ,
2365+ /* file name */ std::unique_ptr<std::string>( new std::string ( *yystack_[1 ].location .end .filename )) ,
23662366 /* line number */ yystack_[1 ].location .end .line
23672367 ));
23682368 driver.addSecAction (std::move (rule));
@@ -2381,7 +2381,7 @@ namespace yy {
23812381 std::unique_ptr<RuleScript> r (new RuleScript (
23822382 /* path to script */ yystack_[1 ].value .as < std::string > (),
23832383 /* actions */ a,
2384- /* file name */ *yystack_[1 ].location .end .filename ,
2384+ /* file name */ std::unique_ptr<std::string>( new std::string ( *yystack_[1 ].location .end .filename )) ,
23852385 /* line number */ yystack_[1 ].location .end .line
23862386 ));
23872387
0 commit comments