View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014181CMakeCMakepublic2013-05-30 17:382014-03-05 09:58
ReporterWojciech Knapik 
Assigned ToBrad King 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
Platformx86_64OSLinuxOS Version3.3.8
Product VersionCMake 2.8.10.2 
Target VersionCMake 3.0Fixed in VersionCMake 3.0 
Summary0014181: One-character function names don't work
Description$ cat CMakeLists.txt
function(a)
endfunction()
a()
$ cmake .
CMake Error: Error in cmake code at
/tmp/CMakeLists.txt:3:
Parse error. Expected a command name, got unquoted argument with text "a".
-- Configuring incomplete, errors occurred!
$
TagsNo tags attached.
Attached Files

 Relationships
has duplicate 0014464closedBrad King Function name with a single letter doesn't work 

  Notes
(0033162)
Brad King (manager)
2013-05-31 08:12

It looks like the lexer recognizes an "identifier" token only with at least 2 characters:

http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmListFileLexer.in.l;hb=v2.8.11#l106 [^]
(0034183)
Brad King (manager)
2013-10-21 09:04

Fixed:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=56457837 [^]
(0035290)
Robert Maynard (manager)
2014-03-05 09:58

Closing resolved issues that have not been updated in more than 4 months

 Issue History
Date Modified Username Field Change
2013-05-30 17:38 Wojciech Knapik New Issue
2013-05-31 08:12 Brad King Note Added: 0033162
2013-05-31 08:12 Brad King Status new => backlog
2013-10-09 08:24 Brad King Relationship added has duplicate 0014464
2013-10-21 09:04 Brad King Note Added: 0034183
2013-10-21 09:04 Brad King Assigned To => Brad King
2013-10-21 09:04 Brad King Status backlog => resolved
2013-10-21 09:04 Brad King Resolution open => fixed
2013-10-21 09:04 Brad King Fixed in Version => CMake 3.0
2013-10-21 09:04 Brad King Target Version => CMake 3.0
2014-03-05 09:58 Robert Maynard Note Added: 0035290
2014-03-05 09:58 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team