Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
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
Chen Yisong
glslang
Commits
da0b18c3
Commit
da0b18c3
authored
Feb 01, 2018
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Error message: Improve error message (will help another party id a bug).
parent
e349af7e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
120.frag.out
Test/baseResults/120.frag.out
+1
-1
120.vert.out
Test/baseResults/120.vert.out
+1
-1
ParseHelper.cpp
glslang/MachineIndependent/ParseHelper.cpp
+1
-1
No files found.
Test/baseResults/120.frag.out
View file @
da0b18c3
...
...
@@ -19,7 +19,7 @@ ERROR: 0:82: 'xr' : vector swizzle selectors not from the same set
ERROR: 0:83: 'xyxyx' : vector swizzle too long
ERROR: 0:84: 'z' : vector swizzle selection out of range
ERROR: 0:85: 'assign' : l-value required
ERROR: 0:91: '
int
' : overloaded functions must have the same return type
ERROR: 0:91: '
main
' : overloaded functions must have the same return type
ERROR: 0:91: 'main' : function already has a body
ERROR: 0:91: 'int' : entry point cannot return a value
ERROR: 0:92: 'main' : function cannot take any parameter(s)
...
...
Test/baseResults/120.vert.out
View file @
da0b18c3
...
...
@@ -34,7 +34,7 @@ ERROR: 0:51: 'arrays of arrays' : not supported with this profile: none
ERROR: 0:52: 'arrays of arrays' : not supported with this profile: none
ERROR: 0:53: 'arrays of arrays' : not supported with this profile: none
ERROR: 0:56: 'out' : overloaded functions must have the same parameter storage qualifiers for argument 1
ERROR: 0:57: '
float
' : overloaded functions must have the same return type
ERROR: 0:57: '
overloadA
' : overloaded functions must have the same return type
ERROR: 0:87: 'overloadC' : no matching overloaded function found
ERROR: 0:90: 'overloadC' : no matching overloaded function found
ERROR: 0:95: 'overloadD' : ambiguous function signature match: multiple signatures match under implicit type conversion
...
...
glslang/MachineIndependent/ParseHelper.cpp
View file @
da0b18c3
...
...
@@ -776,7 +776,7 @@ TFunction* TParseContext::handleFunctionDeclarator(const TSourceLoc& loc, TFunct
if
(
prevDec
->
isPrototyped
()
&&
prototype
)
profileRequires
(
loc
,
EEsProfile
,
300
,
nullptr
,
"multiple prototypes for same function"
);
if
(
prevDec
->
getType
()
!=
function
.
getType
())
error
(
loc
,
"overloaded functions must have the same return type"
,
function
.
get
Type
().
getBasicTypeString
().
c_str
(),
""
);
error
(
loc
,
"overloaded functions must have the same return type"
,
function
.
get
Name
().
c_str
(),
""
);
for
(
int
i
=
0
;
i
<
prevDec
->
getParamCount
();
++
i
)
{
if
((
*
prevDec
)[
i
].
type
->
getQualifier
().
storage
!=
function
[
i
].
type
->
getQualifier
().
storage
)
error
(
loc
,
"overloaded functions must have the same parameter storage qualifiers for argument"
,
function
[
i
].
type
->
getStorageQualifierString
(),
"%d"
,
i
+
1
);
...
...
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