public inbox for overseers@sourceware.org
 help / color / mirror / Atom feed
* Request for Bugzilla account
@ 2016-08-01 14:31 Roy Bellingan
  0 siblings, 0 replies; only message in thread
From: Roy Bellingan @ 2016-08-01 14:31 UTC (permalink / raw)
  To: overseers

Hy

I would like to report a bug in g++


I am still testing it, but I am quite sure is a bug...
In short at O2 this code fails (but runs ok at O0

	unsigned long long a;
	std::ifstream infile("campaigns/1350_ids");
	while (infile >> a){
		ids.insert(std::pair<unsigned long long,bool>(a,1));
	}

Fail because a is 0


I can "force" it to work with a >> in a std::string

	unsigned long long a;
	std::ifstream infile("campaigns/1350_ids");
	std::string cry;
	infile >> cry;
	while (infile >> a){
		ids.insert(std::pair<unsigned long long,bool>(a,1));
	}


I have tested with suse
gcc version 5.3.1 20160301 [gcc-5-branch revision 233849]
and
gcc version 6.1.1 20160707 [gcc-6-branch revision 238088]

Can I have an account on the bugzilla ?


Bye

-- 
We choose to go to the moon.
We choose to go to the moon in this decade and do the other things,
not because they are easy, but because they are hard,
because that goal will serve to organize and measure the best of our energies and skills,
because that challenge is one that we are willing to accept,
one we are unwilling to postpone,
and one which we intend to win, and the others, too.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-01 14:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-01 14:31 Request for Bugzilla account Roy Bellingan

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).