http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53094
Marc Glisse changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53094
--- Comment #15 from Marc Glisse ---
r200822 | glisse | 2013-07-09 17:58:36 +0200 (Tue, 09 Jul 2013) | 11 lines
2013-07-09 Marc Glisse
PR c++/53094
gcc/cp/
* semantics.c (cxx_eval_bit_field_ref): Handle VECTOR_CST.
gcc/testsu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53094
--- Comment #14 from Marc Glisse 2012-12-11
20:20:34 UTC ---
Author: glisse
Date: Tue Dec 11 20:20:23 2012
New Revision: 194421
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194421
Log:
2012-12-11 Marc Glisse
PR c++/
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53094
--- Comment #13 from Marc Glisse 2012-12-03
22:30:53 UTC ---
typedef float __attribute__( ( vector_size( 4*sizeof(float) ) ) ) V4;
constexpr V4 v = {1,1,1,0};
constexpr V4 r = v[0]+v;
is enough to reproduce your latest ICE. cxx_eval_bar
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53094
--- Comment #12 from vincenzo Innocente
2012-12-03 22:05:29 UTC ---
about subscripting I get an ICE (set fault)
with
constexpr V4 v = {1,1,1,0};
constexpr V4 m[3] = { (V4){1,0,0,0}, (V4){0,1,0,0}, (V4){0,0,1,0}};
constexpr V4 r = v[0]*m[
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53094
--- Comment #11 from vincenzo Innocente
2012-12-03 21:58:05 UTC ---
thanks Marc,
adding your proposed change above Jason's one make my full test works (but when
subscripting is involved..)
this is my current svn diff
Hope that c++ mainta
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53094
--- Comment #10 from Marc Glisse 2012-12-03
19:52:39 UTC ---
Created attachment 28864
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28864
minimal cumulative patch for comment #9
(In reply to comment #9)
> adding it "helps"
>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53094
--- Comment #9 from vincenzo Innocente
2012-12-03 19:15:09 UTC ---
adding it "helps"
t = build_constructor (TREE_TYPE (t), n);
+ if (TREE_CODE (TREE_TYPE (t)) == VECTOR_TYPE)
+t = fold (t);
TREE_CONSTANT (t) = true;
unfortunately ge
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53094
--- Comment #8 from Marc Glisse 2012-12-03 14:53:52
UTC ---
(In reply to comment #7)
> typedef float __attribute__( ( vector_size( 4*sizeof(float) ) ) ) V4;
> constexpr V4 build(float x,float y, float z) { return (V4){x,y,z,0};}
> constexpr V4 x
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53094
--- Comment #7 from vincenzo Innocente
2012-12-03 14:29:54 UTC ---
a bit of cross posting with PR55573] sorry
this
typedef float __attribute__( ( vector_size( 4*sizeof(float) ) ) ) V4;
constexpr V4 build(float x,float y, float z) { return (V4)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53094
Marc Glisse changed:
What|Removed |Added
Summary|vector literal |constexpr vector
11 matches
Mail list logo