After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 555048 - bad code generation for string concatenation
bad code generation for string concatenation
Status: RESOLVED DUPLICATE of bug 516287
Product: vala
Classification: Core
Component: Code Generator
0.3.x
Other All
: Normal critical
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2008-10-04 23:46 UTC by ccadete
Modified: 2008-10-05 07:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description ccadete 2008-10-04 23:46:17 UTC
Steps to reproduce:
using GLib;

namespace GCalculator {

    public const string PACKAGE_GLADE_DIR = "";
    public const string MAIN_GLADE_FILE = GCalculator.PACKAGE_GLADE_DIR + "/main_frame.glade";
}


Stack trace:
The code generate:

#define GCALCULATOR_PACKAGE_GLADE_DIR ""
#define GCALCULATOR_MAIN_GLADE_FILE GCALCULATOR_PACKAGE_GLADE_DIR + "/main_frame.glade"

Other information:
The plus sign cannot be applied in C since it is a string literal
Comment 1 Jaap A. Haitsma 2008-10-05 07:54:30 UTC

*** This bug has been marked as a duplicate of 516287 ***