public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51582] New: ICE when using a class with a matrix of complex numbers in C++0x mode
@ 2011-12-16 16:37 mjdcc at clix dot pt
2011-12-16 17:23 ` [Bug c++/51582] [4.6 Regression] " paolo.carlini at oracle dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: mjdcc at clix dot pt @ 2011-12-16 16:37 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51582
Bug #: 51582
Summary: ICE when using a class with a matrix of complex
numbers in C++0x mode
Classification: Unclassified
Product: gcc
Version: 4.6.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: mjdcc@clix.pt
Created attachment 26112
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26112
Preprocessed source
Compiling the following code:
#include <complex>
struct Mat {
std::complex<double> data[3][3];
};
int main() {
Mat m;
}
with -std=c++0x fails, giving the following error message:
mat.cpp: In function ‘int main()’:
mat.cpp:17:6: in constexpr expansion of ‘m.Mat::Mat()’
mat.cpp:17:6: internal compiler error: in build_special_member_call, at
cp/call.c:6615
However, the code compiles successfully, when using a vector instead of
a matrix, or by removing "Mat m;".
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51582] [4.6 Regression] ICE when using a class with a matrix of complex numbers in C++0x mode
2011-12-16 16:37 [Bug c++/51582] New: ICE when using a class with a matrix of complex numbers in C++0x mode mjdcc at clix dot pt
@ 2011-12-16 17:23 ` paolo.carlini at oracle dot com
2012-01-03 11:52 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-12-16 17:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51582
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Keywords| |ice-on-valid-code
Last reconfirmed| |2011-12-16
CC| |jason at gcc dot gnu.org
Ever Confirmed|0 |1
Summary|ICE when using a class with |[4.6 Regression] ICE when
|a matrix of complex numbers |using a class with a matrix
|in C++0x mode |of complex numbers in C++0x
| |mode
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-16 17:05:51 UTC ---
Mainline is fine but in 4_6-branch the problem is still there as of 182409.
4.5.x didn't have constexpr thus it's obvious that the problem wasn't there,
but it would be nice to do something in 4_6-branch: from the point of view of
the user trying -std=c++0x the issue is rather serious. I don't know if we have
something simple to backport.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51582] [4.6 Regression] ICE when using a class with a matrix of complex numbers in C++0x mode
2011-12-16 16:37 [Bug c++/51582] New: ICE when using a class with a matrix of complex numbers in C++0x mode mjdcc at clix dot pt
2011-12-16 17:23 ` [Bug c++/51582] [4.6 Regression] " paolo.carlini at oracle dot com
@ 2012-01-03 11:52 ` rguenth at gcc dot gnu.org
2012-03-01 14:41 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-03 11:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51582
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.5.3, 4.7.0
Target Milestone|--- |4.6.3
Known to fail| |4.6.0, 4.6.2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51582] [4.6 Regression] ICE when using a class with a matrix of complex numbers in C++0x mode
2011-12-16 16:37 [Bug c++/51582] New: ICE when using a class with a matrix of complex numbers in C++0x mode mjdcc at clix dot pt
2011-12-16 17:23 ` [Bug c++/51582] [4.6 Regression] " paolo.carlini at oracle dot com
2012-01-03 11:52 ` rguenth at gcc dot gnu.org
@ 2012-03-01 14:41 ` jakub at gcc dot gnu.org
2013-04-05 15:18 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-03-01 14:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51582
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.6.3 |4.6.4
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-01 14:38:14 UTC ---
GCC 4.6.3 is being released.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51582] [4.6 Regression] ICE when using a class with a matrix of complex numbers in C++0x mode
2011-12-16 16:37 [Bug c++/51582] New: ICE when using a class with a matrix of complex numbers in C++0x mode mjdcc at clix dot pt
` (2 preceding siblings ...)
2012-03-01 14:41 ` jakub at gcc dot gnu.org
@ 2013-04-05 15:18 ` jason at gcc dot gnu.org
2013-04-06 16:08 ` jason at gcc dot gnu.org
2013-04-12 16:17 ` jakub at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2013-04-05 15:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51582
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2013-04-05 15:18:10 UTC ---
This was fixed on the trunk by
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177073
I put a simpler variant on the 4.6 branch to fix 49924, but that didn't fix
this issue.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51582] [4.6 Regression] ICE when using a class with a matrix of complex numbers in C++0x mode
2011-12-16 16:37 [Bug c++/51582] New: ICE when using a class with a matrix of complex numbers in C++0x mode mjdcc at clix dot pt
` (3 preceding siblings ...)
2013-04-05 15:18 ` jason at gcc dot gnu.org
@ 2013-04-06 16:08 ` jason at gcc dot gnu.org
2013-04-12 16:17 ` jakub at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2013-04-06 16:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51582
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2013-04-06 16:08:28 UTC ---
Created attachment 29816
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29816
patch
Here's a fix. I'm not going to apply it to the 4.6 branch because C++11 users
really ought to move to a newer release, but I'm attaching it here in case it's
useful to anyone.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51582] [4.6 Regression] ICE when using a class with a matrix of complex numbers in C++0x mode
2011-12-16 16:37 [Bug c++/51582] New: ICE when using a class with a matrix of complex numbers in C++0x mode mjdcc at clix dot pt
` (4 preceding siblings ...)
2013-04-06 16:08 ` jason at gcc dot gnu.org
@ 2013-04-12 16:17 ` jakub at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-04-12 16:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51582
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|4.6.4 |4.7.0
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-12 16:17:34 UTC ---
The 4.6 branch has been closed, fixed in GCC 4.7.0.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-04-12 16:17 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-16 16:37 [Bug c++/51582] New: ICE when using a class with a matrix of complex numbers in C++0x mode mjdcc at clix dot pt
2011-12-16 17:23 ` [Bug c++/51582] [4.6 Regression] " paolo.carlini at oracle dot com
2012-01-03 11:52 ` rguenth at gcc dot gnu.org
2012-03-01 14:41 ` jakub at gcc dot gnu.org
2013-04-05 15:18 ` jason at gcc dot gnu.org
2013-04-06 16:08 ` jason at gcc dot gnu.org
2013-04-12 16:17 ` jakub 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).