$
--
Summary: Value increment problems
Product: gcc
Version: 4.3.3
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ivranos at freemail dot gr
--- Comment #1 from ivranos at freemail dot gr 2009-06-10 20:30 ---
Created an attachment (id=17976)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17976action=view)
The main.ii file produced with g++ -ansi -pedantic-errors -Wall -save-temps
main.cc -o foobar
--
http
Version: 4.3.3
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ivranos at freemail dot gr
GCC host triplet: gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) - Ubuntu 9.04
Product: gcc
Version: 4.2.3
Status: UNCONFIRMED
Severity: blocker
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ivranos at freemail dot gr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id
--- Comment #1 from ivranos at freemail dot gr 2008-09-29 11:37 ---
Created an attachment (id=16424)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16424action=view)
The produced .ii file from code (2.)
The produced .ii file from code (2.) compiled with the options:
g++ -ansi
--- Comment #4 from ivranos at freemail dot gr 2008-09-29 13:27 ---
(In reply to comment #2)
Target? Named locales are supported *only* on GNU/Linux systems.
Ubuntu 8.04 x86.
I am learning the QT package, and for example its QString provides a
toStdString() function that returns
--- Comment #6 from ivranos at freemail dot gr 2008-09-29 13:55 ---
The bug reports you are mentioning combined with 35353
(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35353), means that the locales
implementation of GCC is a mess.
I think the proper solution is to fix the locale
--- Comment #8 from ivranos at freemail dot gr 2008-09-30 09:51 ---
Note: Change the encoding of your browser and email client to Greek-ISO or
Unicode, so as to see the messages correctly.
locale -a displays the following:
[EMAIL PROTECTED]:~/Desktop/download/extract$ locale -a
C
: 4.2.3
Status: UNCONFIRMED
Severity: blocker
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ivranos at freemail dot gr
GCC host triplet: Ubuntu 8.04 x86
GCC target triplet: Ubuntu 8.04 x86
http
--- Comment #1 from ivranos at freemail dot gr 2008-10-02 18:27 ---
Created an attachment (id=16453)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16453action=view)
The produced .ii file
The produced .ii file from code compiled with the options:
g++ -ansi -pedantic-errors -Wall
--- Comment #2 from ivranos at freemail dot gr 2008-10-02 18:33 ---
My mistake. :-)
--
ivranos at freemail dot gr changed:
What|Removed |Added
Status
());
}
--
Summary: Segmentation fault
Product: gcc
Version: 4.2.3
Status: UNCONFIRMED
Severity: blocker
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ivranos at freemail dot gr
--- Comment #1 from ivranos at freemail dot gr 2008-10-02 19:17 ---
Created an attachment (id=16454)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16454action=view)
The produced .ii file
This is the produced main.ii file created by
g++ -ansi -pedantic-errors -Wall -save-temps
--- Comment #2 from ivranos at freemail dot gr 2008-10-02 19:27 ---
Created an attachment (id=16455)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16455action=view)
The produced main.ii file
The produced main.ii file by
g++ -ansi -pedantic-errors -Wall -save-temps main.cc -o
--- Comment #4 from ivranos at freemail dot gr 2008-10-02 21:09 ---
May you be more specific and tell what exactly is invalid? That is what is the
error in the source code.
--
ivranos at freemail dot gr changed:
What|Removed |Added
--- Comment #6 from ivranos at freemail dot gr 2008-10-02 23:34 ---
The bug can easily be in the library.
--
ivranos at freemail dot gr changed:
What|Removed |Added
--- Comment #7 from ivranos at freemail dot gr 2008-10-02 23:37 ---
To be more precise: I believe the bug is in the library.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37721
--- Comment #9 from ivranos at freemail dot gr 2008-10-03 08:38 ---
I am sorry but you are not right/specific.
At first there is no struct in the code, only class. Second, the copy
constructor does not copy the passed argument, it ignores it. But it
initialises its data member the same
--- Comment #11 from ivranos at freemail dot gr 2008-10-03 08:48 ---
I posted the code to c.l.c++ with the subject Segmentation fault. If noone
finds any bug, I will reopen the bug here.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37721
--- Comment #13 from ivranos at freemail dot gr 2008-10-03 09:09 ---
The prurpose of the code is to benchmark the sorting of a vector and of a list
with complex objects as their elements (SomeClass).
SomeClass itself doesn't make any other sense, its purpose is to be complex.
I think
--- Comment #15 from ivranos at freemail dot gr 2008-10-03 09:54 ---
So, if there isn't any source code bug at my side, and it is a compiler bug,
you mean the maintainers don't care to fix it?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37721
--- Comment #16 from ivranos at freemail dot gr 2008-10-03 11:52 ---
I managed to replicate the bug in simple code:
#include iostream
#include ctime
#include cstdlib
#include vector
int main()
{
using namespace std;
vectorint intVector(1000*1000);
srand(time(0
--- Comment #17 from ivranos at freemail dot gr 2008-10-03 11:55 ---
The bug occurs in this simpler code too:
#include iostream
#include ctime
#include cstdlib
#include vector
#include limits
int main()
{
using namespace std;
vectorint intVector(1000*1000);
srand(time
--- Comment #18 from ivranos at freemail dot gr 2008-10-03 11:59 ---
The last two code snippers had errors.
--
ivranos at freemail dot gr changed:
What|Removed |Added
org
ReportedBy: ivranos at freemail dot gr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35353
--- Comment #1 from ivranos at freemail dot gr 2008-02-24 14:11 ---
Created an attachment (id=15217)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15217action=view)
The main.ii file produced by -save-temps option
This is the file created by the
g++ -v -save-temps -ansi
--- Comment #2 from ivranos at freemail dot gr 2008-02-24 14:15 ---
Created an attachment (id=15218)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15218action=view)
The produced main.s file
The main.s file produced by g++ -v -save-temps -ansi -pedantic-errors -Wall
main.cc -o
--- Comment #4 from ivranos at freemail dot gr 2008-02-24 14:23 ---
Created an attachment (id=15219)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15219action=view)
Screenshot of the standard I/O of the working code and of the non-working code.
This screenshot shows the I/O
--- Comment #5 from ivranos at freemail dot gr 2008-02-24 14:35 ---
sync_with_stdio (false) doesn't work. Actually it crashes the code.
Check the screenshot I have attached in the latest attachment, to see the
difference between the C++ working code and the C++ non-working code
--- Comment #7 from ivranos at freemail dot gr 2008-02-25 12:02 ---
I am sorry for insisting on this, but I think there is an issue, and I want the
best for GCC. So please have a look at the messages of this link:
http://tinyurl.com/384u3n and use Unicode (UTF-8) character encoding
--- Comment #8 from ivranos at freemail dot gr 2008-02-25 12:12 ---
Summary of the case:
What doesn't work:
#include iostream
#include locale
#include string
int main()
{
using namespace std;
wcin.imbue(locale(greek));
wcout.imbue(locale(greek));
wstring ws
31 matches
Mail list logo