| Anonymous | Login | Signup for a new account | 2013-05-23 05:12 CEST | ![]() |
| All Projects | FPC | Lazarus: Packages, Patches | Lazarus CCR | Mantis | fpGUI | fpcprojects: fpprofiler |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0022007 | FPC | Packages | public | 2012-05-11 02:13 | 2012-08-20 00:08 | ||||
| Reporter | Michalis Kamburelis | ||||||||
| Assigned To | Michael Van Canneyt | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | resolved | Resolution | fixed | ||||||
| Platform | i386 | OS | Debian GNU/Linux | OS Version | (testing) | ||||
| Product Version | Product Build | ||||||||
| Target Version | 2.6.1 | Fixed in Version | 2.7.1 | ||||||
| Summary | 0022007: fcl-passrc cannot parse C-style assignment operators like += | ||||||||
| Description | fcl-passrc cannot parse assignments like "Foo += 2;". Adding -Sc to the parameter FPCCommandLine of ParseSource procedure, or adding {$COPERATORS ON} in the source code, doesn't result in these being allowed. Looking at fcl-passrc code, it seems that -Sc and {$COPERATORS ON} are ignored. In any case, fcl-passrc could probably just parse them automatically always, without requiring -Sc or {$COPERATORS ON}. $ fpc c_assignment.pas # compiles Ok $ fpc test_parser.lpr $ ./test_parser c_assignment.pas An unhandled exception occurred at $0809676E: EParserError: Identifier expected at token "=" in file c_assignment.pas at line 8 column 8 | ||||||||
| Tags | No tags attached. | ||||||||
| FPCOldBugId | |||||||||
| Fixed in Revision | 22136 | ||||||||
| Attached Files | |||||||||
Notes |
|
|
(0061732) Michael Van Canneyt (administrator) 2012-08-20 00:08 |
Added. You need to use -Sc on the commandline, or add po_cassignments to the scanner options. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-05-11 02:13 | Michalis Kamburelis | New Issue | |
| 2012-05-11 02:13 | Michalis Kamburelis | File Added: c_assignment.pas | |
| 2012-05-11 02:14 | Michalis Kamburelis | File Added: test_parser.lpr | |
| 2012-07-13 20:29 | Michael Van Canneyt | Status | new => assigned |
| 2012-07-13 20:29 | Michael Van Canneyt | Assigned To | => Michael Van Canneyt |
| 2012-08-20 00:08 | Michael Van Canneyt | Fixed in Revision | => 22136 |
| 2012-08-20 00:08 | Michael Van Canneyt | Status | assigned => resolved |
| 2012-08-20 00:08 | Michael Van Canneyt | Fixed in Version | => 2.7.1 |
| 2012-08-20 00:08 | Michael Van Canneyt | Resolution | open => fixed |
| 2012-08-20 00:08 | Michael Van Canneyt | Note Added: 0061732 | |
| 2012-08-20 00:08 | Michael Van Canneyt | Target Version | => 2.6.1 |
| Main | My View | View Issues | Change Log | Roadmap |



