[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/cscc/c c_oper.tc,1.26,1.27
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/cscc/c c_oper.tc,1.26,1.27 |
Date: |
Wed, 25 Jun 2003 05:29:48 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/cscc/c
In directory subversions:/tmp/cvs-serv7639/cscc/c
Modified Files:
c_oper.tc
Log Message:
ILNode_Conditional: error in semantic analysis for the third
sub-expression of "?:".
Index: c_oper.tc
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/c/c_oper.tc,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** c_oper.tc 16 Apr 2003 02:12:42 -0000 1.26
--- c_oper.tc 25 Jun 2003 09:29:46 -0000 1.27
***************
*** 1971,1976 ****
value2 = ILNode_CSemAnalysis(node->expr2, info, &(node->expr2),
stmtLevel);
! /* Both must be r-value's */
! if(!CSemIsRValue(value1) || !CSemIsRValue(value2))
{
if(!CSemIsError(value1) && !CSemIsError(value2))
--- 1971,1977 ----
value2 = ILNode_CSemAnalysis(node->expr2, info, &(node->expr2),
stmtLevel);
! /* Both must be r-value's or "void" */
! if((!CSemIsRValue(value1) && !CSemIsVoid(value1)) ||
! (!CSemIsRValue(value2) && !CSemIsVoid(value2)))
{
if(!CSemIsError(value1) && !CSemIsError(value2))
***************
*** 2183,2187 ****
/* Perform semantic analysis on the "then" and "else" clauses */
value1 = ILNode_CSemAnalysis(node->expr2, info, &(node->expr2),
stmtLevel);
! value2 = ILNode_CSemAnalysis(node->expr2, info, &(node->expr3),
stmtLevel);
if((!CSemIsRValue(value1) && !CSemIsVoid(value1)) ||
(!CSemIsRValue(value2) && !CSemIsVoid(value2)))
--- 2184,2188 ----
/* Perform semantic analysis on the "then" and "else" clauses */
value1 = ILNode_CSemAnalysis(node->expr2, info, &(node->expr2),
stmtLevel);
! value2 = ILNode_CSemAnalysis(node->expr3, info, &(node->expr3),
stmtLevel);
if((!CSemIsRValue(value1) && !CSemIsVoid(value1)) ||
(!CSemIsRValue(value2) && !CSemIsVoid(value2)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/cscc/c c_oper.tc,1.26,1.27,
Rhys Weatherley <address@hidden> <=