Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
6e9a85d5
Commit
6e9a85d5
authored
Nov 11, 2019
by
Jason Merrill
Committed by
Jason Merrill
Nov 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* typeck.c (cp_build_binary_op): Sorry about <=> on VECTOR_TYPE.
From-SVN: r278077
parent
2965eaa8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/typeck.c
+7
-0
gcc/testsuite/g++.dg/cpp2a/spaceship-vec1.C
+11
-0
No files found.
gcc/cp/ChangeLog
View file @
6e9a85d5
2019-11-11 Jason Merrill <jason@redhat.com>
* typeck.c (cp_build_binary_op): Sorry about <=> on VECTOR_TYPE.
2019-11-11 Jakub Jelinek <jakub@redhat.com>
PR c++/92447
...
...
gcc/cp/typeck.c
View file @
6e9a85d5
...
...
@@ -5224,6 +5224,13 @@ cp_build_binary_op (const op_location_t &location,
"types %qT and %qT"
,
type0
,
type1
);
}
if
(
resultcode
==
SPACESHIP_EXPR
)
{
if
(
complain
&
tf_error
)
sorry_at
(
location
,
"three-way comparison of vectors"
);
return
error_mark_node
;
}
/* Always construct signed integer vector type. */
intt
=
c_common_type_for_size
(
GET_MODE_BITSIZE
(
SCALAR_TYPE_MODE
(
TREE_TYPE
(
type0
))),
0
);
...
...
gcc/testsuite/g++.dg/cpp2a/spaceship-vec1.C
0 → 100644
View file @
6e9a85d5
// { dg-do compile { target c++2a } }
#include <compare>
#define vector __attribute__((vector_size(4*sizeof(int)) ))
int
main
()
{
vector
int
a
,
b
;
a
<=>
b
;
// { dg-message "three-way comparison of vector" }
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment