public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51282] New: [regression] error: unable to find string literal operator ‘operator"" on string literal concatenation
@ 2011-11-23 10:52 mutz at kde dot org
2011-11-23 11:40 ` [Bug c++/51282] " redi at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: mutz at kde dot org @ 2011-11-23 10:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51282
Bug #: 51282
Summary: [regression] error: unable to find string literal
operator ‘operator"" on string literal concatenation
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: mutz@kde.org
Current trunk (well, a few days old):
error: unable to find string literal operator ‘operator"" DIR_SEPARATOR_STRING’
In this line:
"abc"DIR_SEPARATOR_STRING"hallo.xxx"
where
#define DIR_SEPARATOR_STRING "/"
This can be fixed by adding whitespace around DIR_SEPARATOR_STRING, but Qt's
SIGNAL/SLOT macros cannot be fixed that way (there, the concatenation of the
string literals appears in the macro definition, and adding extra whitespace
doesn't help there).
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51282] [regression] error: unable to find string literal operator ‘operator"" on string literal concatenation
2011-11-23 10:52 [Bug c++/51282] New: [regression] error: unable to find string literal operator ‘operator"" on string literal concatenation mutz at kde dot org
@ 2011-11-23 11:40 ` redi at gcc dot gnu.org
2011-11-23 11:41 ` redi at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2011-11-23 11:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51282
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-11-23 11:10:50 UTC ---
dup of PR 50917 ?
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51282] [regression] error: unable to find string literal operator ‘operator"" on string literal concatenation
2011-11-23 10:52 [Bug c++/51282] New: [regression] error: unable to find string literal operator ‘operator"" on string literal concatenation mutz at kde dot org
2011-11-23 11:40 ` [Bug c++/51282] " redi at gcc dot gnu.org
@ 2011-11-23 11:41 ` redi at gcc dot gnu.org
2011-11-23 12:17 ` marc.glisse at normalesup dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2011-11-23 11:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51282
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-11-23 11:11:46 UTC ---
in any case, please provide a complete testcase - noone is going to download
and configure Qt to investigate this
http://gcc.gnu.org/bugs/
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51282] [regression] error: unable to find string literal operator ‘operator"" on string literal concatenation
2011-11-23 10:52 [Bug c++/51282] New: [regression] error: unable to find string literal operator ‘operator"" on string literal concatenation mutz at kde dot org
2011-11-23 11:40 ` [Bug c++/51282] " redi at gcc dot gnu.org
2011-11-23 11:41 ` redi at gcc dot gnu.org
@ 2011-11-23 12:17 ` marc.glisse at normalesup dot org
2011-11-23 13:11 ` markus at trippelsdorf dot de
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: marc.glisse at normalesup dot org @ 2011-11-23 12:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51282
Marc Glisse <marc.glisse at normalesup dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marc.glisse at normalesup
| |dot org
--- Comment #3 from Marc Glisse <marc.glisse at normalesup dot org> 2011-11-23 11:45:32 UTC ---
Is this about:
https://bugreports.qt.nokia.com/browse/QTBUG-22847
?
Adding whitespace does seem to help.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51282] [regression] error: unable to find string literal operator ‘operator"" on string literal concatenation
2011-11-23 10:52 [Bug c++/51282] New: [regression] error: unable to find string literal operator ‘operator"" on string literal concatenation mutz at kde dot org
` (2 preceding siblings ...)
2011-11-23 12:17 ` marc.glisse at normalesup dot org
@ 2011-11-23 13:11 ` markus at trippelsdorf dot de
2011-11-23 13:23 ` paolo.carlini at oracle dot com
2011-11-23 15:28 ` mutz at kde dot org
5 siblings, 0 replies; 7+ messages in thread
From: markus at trippelsdorf dot de @ 2011-11-23 13:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51282
Markus Trippelsdorf <markus at trippelsdorf dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |markus at trippelsdorf dot
| |de
--- Comment #4 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-11-23 12:16:38 UTC ---
Yes the space is mandatory in C++11.
See:
https://groups.google.com/forum/#!topic/comp.std.c++/9nD4Mb8pN1Q/discussion
Or: https://bugzilla.mozilla.org/show_bug.cgi?id=698264#c9
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51282] [regression] error: unable to find string literal operator ‘operator"" on string literal concatenation
2011-11-23 10:52 [Bug c++/51282] New: [regression] error: unable to find string literal operator ‘operator"" on string literal concatenation mutz at kde dot org
` (3 preceding siblings ...)
2011-11-23 13:11 ` markus at trippelsdorf dot de
@ 2011-11-23 13:23 ` paolo.carlini at oracle dot com
2011-11-23 15:28 ` mutz at kde dot org
5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-11-23 13:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51282
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-11-23 13:10:19 UTC ---
Thus, if the whitespace is mandatory and -std=c++0x (or -std=c++11) is used on
the command line (submitter doesn't say this explicitly) this PR is invalid.
*** This bug has been marked as a duplicate of bug 50917 ***
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51282] [regression] error: unable to find string literal operator ‘operator"" on string literal concatenation
2011-11-23 10:52 [Bug c++/51282] New: [regression] error: unable to find string literal operator ‘operator"" on string literal concatenation mutz at kde dot org
` (4 preceding siblings ...)
2011-11-23 13:23 ` paolo.carlini at oracle dot com
@ 2011-11-23 15:28 ` mutz at kde dot org
5 siblings, 0 replies; 7+ messages in thread
From: mutz at kde dot org @ 2011-11-23 15:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51282
--- Comment #6 from mutz at kde dot org 2011-11-23 14:35:52 UTC ---
I was confused that I had applied the patch to Qt, but it still failed to
compile. I since learned that the unpatched code was still lurking in the PCH,
so yes, this is invalid.
Sorry, and thanks.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-11-23 14:36 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-23 10:52 [Bug c++/51282] New: [regression] error: unable to find string literal operator ‘operator"" on string literal concatenation mutz at kde dot org
2011-11-23 11:40 ` [Bug c++/51282] " redi at gcc dot gnu.org
2011-11-23 11:41 ` redi at gcc dot gnu.org
2011-11-23 12:17 ` marc.glisse at normalesup dot org
2011-11-23 13:11 ` markus at trippelsdorf dot de
2011-11-23 13:23 ` paolo.carlini at oracle dot com
2011-11-23 15:28 ` mutz at kde dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).