tracker issue : CF-3148699

select a category, or use search below
(searches all categories and all time range)

Implicit struct defined in a tertiary operator inside a tag attribute throws exception

| View in Tracker

Status/Resolution/Reason: Closed/Deferred/HighRisk

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 03/25/2012

Components: Language, Datastructure

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Public Beta /

Priority/Frequency: Normal / Few users will encounter

Locale/System: English / Win All

Vote Count: 0

- <cfdump var="#(isDefined('foo'))?'foo':{}#" />
- <cfdump var="#(isDefined('foo'))?'foo':[]#" />

Error: Variable ___IMPLICITARRYSTRUCTVARn is undefined

Another scenario from bug 3197751

<cffunction name="f">
   <cfreturn querynew("C")>
</cffunction >
<cfloop query="#f({a=’b’})#"></cfloop>

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3148699

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name: itisdesign
External Customer Email:



Related thread:
Comment by External U.
19966 | March 25, 2012 01:50:14 AM GMT
This requires parser changes, which is too risky to be taken up at this stage.
Comment by Rupesh K.
19967 | March 26, 2012 05:26:27 AM GMT
Ah, no problem. Thanks Rupesh! -Aaron
Comment by External U.
19968 | March 26, 2012 05:33:19 AM GMT