public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35116] New: [4.3 Regression]: Fail to compile valid code
@ 2008-02-07 3:48 hjl dot tools at gmail dot com
2008-02-07 5:11 ` [Bug c++/35116] " hjl dot tools at gmail dot com
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-02-07 3:48 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1106 bytes --]
Gcc 4.3 revision 132153 failed to compile:
[hjl@gnu-23 build_base_o2.0000]$ cat x.cc
#include <vector>
template <typename Number>
class Vector
{
};
template <int dim>
class Foo
{
public:
virtual void foo (const unsigned int);
struct Data
{
std::vector<Vector<double> > bar;
};
};
template <int dim>
void Foo<dim>::foo (const unsigned int n)
{
std::vector<Data> data(n);
}
template class Foo<3>;
[hjl@gnu-23 build_base_o2.0000]$ /usr/gcc-4.3/bin/gcc -O2 x.cc -S
x.cc: In member function âvoid Foo<dim>::foo(unsigned int) [with int dim = 3]â:
x.cc:22: instantiated from here
x.cc:20: error: void value not ignored as it ought to be
[hjl@gnu-23 build_base_o2.0000]$
Revision 131899 is OK.
--
Summary: [4.3 Regression]: Fail to compile valid code
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl dot tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35116
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35116] [4.3 Regression]: Fail to compile valid code
2008-02-07 3:48 [Bug c++/35116] New: [4.3 Regression]: Fail to compile valid code hjl dot tools at gmail dot com
@ 2008-02-07 5:11 ` hjl dot tools at gmail dot com
2008-02-07 7:20 ` jason at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-02-07 5:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from hjl dot tools at gmail dot com 2008-02-07 05:10 -------
Revision 132088:
http://gcc.gnu.org/ml/gcc-cvs/2008-02/msg00100.html
is the cause.
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35116
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35116] [4.3 Regression]: Fail to compile valid code
2008-02-07 3:48 [Bug c++/35116] New: [4.3 Regression]: Fail to compile valid code hjl dot tools at gmail dot com
2008-02-07 5:11 ` [Bug c++/35116] " hjl dot tools at gmail dot com
@ 2008-02-07 7:20 ` jason at gcc dot gnu dot org
2008-02-07 7:44 ` manu at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-02-07 7:20 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-02-07 07:19:36
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35116
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35116] [4.3 Regression]: Fail to compile valid code
2008-02-07 3:48 [Bug c++/35116] New: [4.3 Regression]: Fail to compile valid code hjl dot tools at gmail dot com
2008-02-07 5:11 ` [Bug c++/35116] " hjl dot tools at gmail dot com
2008-02-07 7:20 ` jason at gcc dot gnu dot org
@ 2008-02-07 7:44 ` manu at gcc dot gnu dot org
2008-02-07 8:55 ` jakub at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: manu at gcc dot gnu dot org @ 2008-02-07 7:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from manu at gcc dot gnu dot org 2008-02-07 07:44 -------
Regressions need a target milestone, otherwise they don't appear in the list of
regressions.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35116
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35116] [4.3 Regression]: Fail to compile valid code
2008-02-07 3:48 [Bug c++/35116] New: [4.3 Regression]: Fail to compile valid code hjl dot tools at gmail dot com
` (2 preceding siblings ...)
2008-02-07 7:44 ` manu at gcc dot gnu dot org
@ 2008-02-07 8:55 ` jakub at gcc dot gnu dot org
2008-02-07 10:36 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-02-07 8:55 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35116
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35116] [4.3 Regression]: Fail to compile valid code
2008-02-07 3:48 [Bug c++/35116] New: [4.3 Regression]: Fail to compile valid code hjl dot tools at gmail dot com
` (3 preceding siblings ...)
2008-02-07 8:55 ` jakub at gcc dot gnu dot org
@ 2008-02-07 10:36 ` pinskia at gcc dot gnu dot org
2008-02-09 3:41 ` jason at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-02-07 10:36 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Severity|normal |blocker
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35116
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35116] [4.3 Regression]: Fail to compile valid code
2008-02-07 3:48 [Bug c++/35116] New: [4.3 Regression]: Fail to compile valid code hjl dot tools at gmail dot com
` (4 preceding siblings ...)
2008-02-07 10:36 ` pinskia at gcc dot gnu dot org
@ 2008-02-09 3:41 ` jason at gcc dot gnu dot org
2008-02-09 9:53 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-02-09 3:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jason at gcc dot gnu dot org 2008-02-09 03:40 -------
Subject: Bug 35116
Author: jason
Date: Sat Feb 9 03:40:14 2008
New Revision: 132197
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132197
Log:
PR c++/35116
* tree.c (build_target_expr_with_type): Handle void initializer.
(bot_manip): Remap slot before recursing.
Added:
trunk/gcc/testsuite/g++.dg/init/value2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/tree.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35116
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35116] [4.3 Regression]: Fail to compile valid code
2008-02-07 3:48 [Bug c++/35116] New: [4.3 Regression]: Fail to compile valid code hjl dot tools at gmail dot com
` (5 preceding siblings ...)
2008-02-09 3:41 ` jason at gcc dot gnu dot org
@ 2008-02-09 9:53 ` jakub at gcc dot gnu dot org
2008-02-14 14:55 ` pinskia at gcc dot gnu dot org
2008-02-15 11:41 ` reichelt at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-02-09 9:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2008-02-09 09:53 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35116
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35116] [4.3 Regression]: Fail to compile valid code
2008-02-07 3:48 [Bug c++/35116] New: [4.3 Regression]: Fail to compile valid code hjl dot tools at gmail dot com
` (6 preceding siblings ...)
2008-02-09 9:53 ` jakub at gcc dot gnu dot org
@ 2008-02-14 14:55 ` pinskia at gcc dot gnu dot org
2008-02-15 11:41 ` reichelt at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-02-14 14:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2008-02-14 14:55 -------
*** Bug 35183 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35116
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35116] [4.3 Regression]: Fail to compile valid code
2008-02-07 3:48 [Bug c++/35116] New: [4.3 Regression]: Fail to compile valid code hjl dot tools at gmail dot com
` (7 preceding siblings ...)
2008-02-14 14:55 ` pinskia at gcc dot gnu dot org
@ 2008-02-15 11:41 ` reichelt at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-15 11:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from reichelt at gcc dot gnu dot org 2008-02-15 11:40 -------
*** Bug 35191 has been marked as a duplicate of this bug. ***
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schnetter at aei dot mpg dot
| |de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35116
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-02-15 11:41 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-07 3:48 [Bug c++/35116] New: [4.3 Regression]: Fail to compile valid code hjl dot tools at gmail dot com
2008-02-07 5:11 ` [Bug c++/35116] " hjl dot tools at gmail dot com
2008-02-07 7:20 ` jason at gcc dot gnu dot org
2008-02-07 7:44 ` manu at gcc dot gnu dot org
2008-02-07 8:55 ` jakub at gcc dot gnu dot org
2008-02-07 10:36 ` pinskia at gcc dot gnu dot org
2008-02-09 3:41 ` jason at gcc dot gnu dot org
2008-02-09 9:53 ` jakub at gcc dot gnu dot org
2008-02-14 14:55 ` pinskia at gcc dot gnu dot org
2008-02-15 11:41 ` reichelt at gcc dot gnu 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).