public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61575] New: [4.9 Regression] Bogus invalid initialization of reference of type 'const D&' from expression of type '<brace-enclosed initializer list>'
@ 2014-06-20 21:13 ppluzhnikov at google dot com
2014-06-20 21:14 ` [Bug c++/61575] " ppluzhnikov at google dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: ppluzhnikov at google dot com @ 2014-06-20 21:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61575
Bug ID: 61575
Summary: [4.9 Regression] Bogus invalid initialization of
reference of type 'const D&' from expression of type
'<brace-enclosed initializer list>'
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ppluzhnikov at google dot com
Google ref: b/15094102
The following test compiles with gcc-4.8 and trunk, fails with current
gcc-4_9-branch:
/// -- cut ---
struct D
{
const int &x;
const int &y;
};
int Create (const D &);
void fn1 ()
{
Create ( { {}, {} });
}
/// -- cut ---
gcc-svn-4_9-r211828/bin/gcc -c -std=c++11 t.ii
gcc-svn-4_9-r211175/bin/gcc -c -std=c++11 t.ii
t.ii: In function 'void fn1()':
t.ii:10:22: error: invalid initialization of reference of type 'const D&' from
expression of type '<brace-enclosed initializer list>'
Create ( { {}, {} });
^
t.ii:6:5: note: in passing argument 1 of 'int Create(const D&)'
int Create (const D &);
^
The source is accepted by Clang, and trunk (@r211826). It was rejected by
trunk in the past:
OK gcc-svn-r195189/bin/gcc
OK gcc-svn-r197259/bin/gcc
OK gcc-svn-r198246/bin/gcc
OK gcc-svn-r198956/bin/gcc
OK gcc-svn-r199779/bin/gcc
OK gcc-svn-r199793/bin/gcc
OK gcc-svn-r199956/bin/gcc
OK gcc-svn-r200178/bin/gcc
... broke somewhere here
KO gcc-svn-r210292/bin/gcc
KO gcc-svn-r210629/bin/gcc
... refixed somewhere here
OK gcc-svn-r211159/bin/gcc
OK gcc-svn-r211286/bin/gcc
OK gcc-svn-r211479/bin/gcc
OK gcc-svn-r211743/bin/gcc
OK gcc-svn-r211826/bin/gcc
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/61575] [4.9 Regression] Bogus invalid initialization of reference of type 'const D&' from expression of type '<brace-enclosed initializer list>'
2014-06-20 21:13 [Bug c++/61575] New: [4.9 Regression] Bogus invalid initialization of reference of type 'const D&' from expression of type '<brace-enclosed initializer list>' ppluzhnikov at google dot com
@ 2014-06-20 21:14 ` ppluzhnikov at google dot com
2014-06-23 10:33 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: ppluzhnikov at google dot com @ 2014-06-20 21:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61575
--- Comment #1 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
Sorry, cut/paste error. Both
gcc-svn-4_9-r211828/bin/gcc
gcc-svn-4_9-r211175/bin/gcc
fails the same way.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/61575] [4.9 Regression] Bogus invalid initialization of reference of type 'const D&' from expression of type '<brace-enclosed initializer list>'
2014-06-20 21:13 [Bug c++/61575] New: [4.9 Regression] Bogus invalid initialization of reference of type 'const D&' from expression of type '<brace-enclosed initializer list>' ppluzhnikov at google dot com
2014-06-20 21:14 ` [Bug c++/61575] " ppluzhnikov at google dot com
@ 2014-06-23 10:33 ` rguenth at gcc dot gnu.org
2014-06-25 12:11 ` jakub at gcc dot gnu.org
2014-06-26 12:57 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-23 10:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61575
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.9.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/61575] [4.9 Regression] Bogus invalid initialization of reference of type 'const D&' from expression of type '<brace-enclosed initializer list>'
2014-06-20 21:13 [Bug c++/61575] New: [4.9 Regression] Bogus invalid initialization of reference of type 'const D&' from expression of type '<brace-enclosed initializer list>' ppluzhnikov at google dot com
2014-06-20 21:14 ` [Bug c++/61575] " ppluzhnikov at google dot com
2014-06-23 10:33 ` rguenth at gcc dot gnu.org
@ 2014-06-25 12:11 ` jakub at gcc dot gnu.org
2014-06-26 12:57 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-06-25 12:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61575
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-06-25
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Regressed with r207170, fixed on the trunk with r211024.
PR61242 is listed as fixed for 4.9.1, but the patch has been only applied to
the trunk. Jason?
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/61575] [4.9 Regression] Bogus invalid initialization of reference of type 'const D&' from expression of type '<brace-enclosed initializer list>'
2014-06-20 21:13 [Bug c++/61575] New: [4.9 Regression] Bogus invalid initialization of reference of type 'const D&' from expression of type '<brace-enclosed initializer list>' ppluzhnikov at google dot com
` (2 preceding siblings ...)
2014-06-25 12:11 ` jakub at gcc dot gnu.org
@ 2014-06-26 12:57 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-26 12:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61575
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-06-26 12:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-20 21:13 [Bug c++/61575] New: [4.9 Regression] Bogus invalid initialization of reference of type 'const D&' from expression of type '<brace-enclosed initializer list>' ppluzhnikov at google dot com
2014-06-20 21:14 ` [Bug c++/61575] " ppluzhnikov at google dot com
2014-06-23 10:33 ` rguenth at gcc dot gnu.org
2014-06-25 12:11 ` jakub at gcc dot gnu.org
2014-06-26 12:57 ` rguenth at gcc dot gnu.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).